This commit is contained in:
garnier-quentin 2014-05-12 23:21:01 +02:00
parent d611c62640
commit 8a21287f61
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,8 @@ sub backtick {
$sig_do = 'DEFAULT';
}
local $SIG{CHLD} = $sig_do;
$SIG{TTOU} = 'IGNORE';
$| = 1;
if (!defined($pid = open( KID, "-|" ))) {
return (-1001, "Cant fork: $!", -1);
@ -220,6 +222,7 @@ sub backtick {
# child
# set the child process to be a group leader, so that
# kill -9 will kill it and all its descendents
# We have ignore SIGTTOU to let write background processes
setpgrp( 0, 0 );
if ($arg{redirect_stderr} == 1) {