run_program: close pipe fd's which are connected to child process
authorMarco d'Itri <md@Linux.IT>
Sun, 27 Aug 2006 00:53:16 +0000 (02:53 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sun, 27 Aug 2006 00:53:16 +0000 (02:53 +0200)
commitb83b299141ccbe2b60cf49a766a540c43f32167c
tree2a61f06e66fb86fed3e1eaf78a1fc5b6cc3eb6bc
parenta1e6bd93d3d650c2064daafdb253120ae6e89398
run_program: close pipe fd's which are connected to child process

When udev_log="debug", the children of udev inherit the file
descriptors of the pipes used to capture output. If they are not
properly closed then udev will not exit until all programs started
in the background by the children are terminated or have closed the
fds themselves, and this may cause deadlocks with udevsettle.
udev_utils_run.c