diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-19 21:08:14 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-19 21:11:08 +0200 |
commit | 288a81d8470b1fd2e8a8f0814abe4cbfed71497c (patch) | |
tree | 36f9c2ef8575926161315d5057504d00bdeac139 /scripts/rankmirrors.sh.in | |
parent | bfe36c2ddf869e2ebc44bec1e35c0319263ac386 (diff) | |
download | pacman-288a81d8470b1fd2e8a8f0814abe4cbfed71497c.tar.gz pacman-288a81d8470b1fd2e8a8f0814abe4cbfed71497c.tar.xz |
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 'scripts/rankmirrors.sh.in')
0 files changed, 0 insertions, 0 deletions