Some child process call message_user() with SIG{CHLD} = 'IGNORE',
but overwrite to chld_handler() at finish sending message. That is wrong.
This patch allows to keep SIG{CHLD} to 'IGNORE' after sending message.
if (! defined $duration || $duration eq "") { $duration = 0; }
+ my $child_handler = $SIG{'CHLD'};
$SIG{'CHLD'} = 'IGNORE';
# if message type was 'status' and messaging is allowed
$message, 1 );
}
- $SIG{'CHLD'} = \&chld_handler;
+ $SIG{'CHLD'} = $child_handler;
}
# This func takes care of sending out the notification message by calling