diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-19 14:08:14 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-19 14:11:08 -0500 |
commit | 288a81d8470b1fd2e8a8f0814abe4cbfed71497c (patch) | |
tree | 36f9c2ef8575926161315d5057504d00bdeac139 /test/pacman/tests/upgrade071.py | |
parent | bfe36c2ddf869e2ebc44bec1e35c0319263ac386 (diff) |
Use more efficient way of restoring working directory
Rather than using a string-based path, we can restore the working
directory via a file descriptor and use of fchdir().
From the getcwd manpage:
Opening the current directory (".") and calling fchdir(2) to
return is usually a faster and more reliable alternative when
sufficiently many file descriptors are available.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/upgrade071.py')
0 files changed, 0 insertions, 0 deletions