runcmd: use a pipe for stdin to child processes
authorAndrew Tridgell <tridge@samba.org>
Wed, 30 Nov 2011 03:07:51 +0000 (14:07 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 22 Dec 2011 11:26:08 +0000 (12:26 +0100)
commit81c564798c84a39c92c2c33d57151a9064940152
treecc46fcc28ba3269475eecc45ef87d650959d49db
parent711c18c2301d1bea35cac1144080a94e6b89be27
runcmd: use a pipe for stdin to child processes

this allows child processes to detect the exit of the parent by
looking for EOF on stdin
lib/util/util_runcmd.c