summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-19 21:08:14 +0200
committerDan McGee <dan@archlinux.org>2011-09-19 21:11:08 +0200
commit288a81d8470b1fd2e8a8f0814abe4cbfed71497c (patch)
tree36f9c2ef8575926161315d5057504d00bdeac139 /lib/libalpm/trans.c
parentbfe36c2ddf869e2ebc44bec1e35c0319263ac386 (diff)
downloadpacman-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 'lib/libalpm/trans.c')
0 files changed, 0 insertions, 0 deletions