From 8a21287f61e82c9000f056c5e1c42a7ea6e29c9f Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 12 May 2014 23:21:01 +0200 Subject: [PATCH] Fix #5537 --- centreon/plugins/misc.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centreon/plugins/misc.pm b/centreon/plugins/misc.pm index b19ff18df..0688016c1 100644 --- a/centreon/plugins/misc.pm +++ b/centreon/plugins/misc.pm @@ -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) {