mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 05:35:01 +02:00
Merge branch 'master' of http://git.centreon.com/centreon-plugins
This commit is contained in:
commit
c773e5fc1d
@ -184,6 +184,8 @@ sub backtick {
|
|||||||
$sig_do = 'DEFAULT';
|
$sig_do = 'DEFAULT';
|
||||||
}
|
}
|
||||||
local $SIG{CHLD} = $sig_do;
|
local $SIG{CHLD} = $sig_do;
|
||||||
|
$SIG{TTOU} = 'IGNORE';
|
||||||
|
$| = 1;
|
||||||
|
|
||||||
if (!defined($pid = open( KID, "-|" ))) {
|
if (!defined($pid = open( KID, "-|" ))) {
|
||||||
return (-1001, "Cant fork: $!", -1);
|
return (-1001, "Cant fork: $!", -1);
|
||||||
@ -221,6 +223,7 @@ sub backtick {
|
|||||||
# child
|
# child
|
||||||
# set the child process to be a group leader, so that
|
# set the child process to be a group leader, so that
|
||||||
# kill -9 will kill it and all its descendents
|
# kill -9 will kill it and all its descendents
|
||||||
|
# We have ignore SIGTTOU to let write background processes
|
||||||
setpgrp( 0, 0 );
|
setpgrp( 0, 0 );
|
||||||
|
|
||||||
if ($arg{redirect_stderr} == 1) {
|
if ($arg{redirect_stderr} == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user