]> err.no Git - systemd/commit
util: add brute-force fallback for close_all_fds()
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Mar 2012 01:29:27 +0000 (02:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Mar 2012 01:29:27 +0000 (02:29 +0100)
commitb19be9eb9e231ccf350e0e051b687fc425c61904
treefe1b39bc5a1b56e1d5c04c1dcde031c0b2c54cc3
parent7f2c63cbf47c89ec56f50469f6551df473dd65d8
util: add brute-force fallback for close_all_fds()

If /proc is not available (i.e. in chroot envs) let's fall back to brute
forcing our way through the fd table.

https://bugzilla.redhat.com/show_bug.cgi?id=784921
src/util.c