common: Speedup closing fds before an exec.
authorWerner Koch <wk@gnupg.org>
Fri, 27 May 2016 20:02:54 +0000 (22:02 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 27 May 2016 20:02:54 +0000 (22:02 +0200)
commit512c56af43027149e8beacf259746b8d7bf9b1a2
tree7e8e2705c5946fbf9dac8495eae816620ec7d193
parentad75ca9c963bebbe02aae8d73e199a705764ae82
common: Speedup closing fds before an exec.

* common/exechelp-posix.c [__linux__]: Include dirent.h.
(get_max_fds) [__linux__]: Return the actual used highest fd.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
common/exechelp-posix.c