From a7e635d83a12ec8f4373777f14f1f2905299c701 Mon Sep 17 00:00:00 2001 From: ramonn Date: Mon, 19 Dec 2011 11:26:05 +0000 Subject: [PATCH] 2011-12-19 Ramon Novoa * pandora_agent: Ignore SIGCHLD. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/unix/ChangeLog | 4 ++++ pandora_agents/unix/pandora_agent | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index 0eefba9e45..486547f1dc 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,7 @@ +2011-12-19 Ramon Novoa + + * pandora_agent: Ignore SIGCHLD. + 2011-12-16 Ramon Novoa * pandora_agent: Empty modules, plugins and collections before diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 39fbf2d1cc..16c9914cb9 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1589,6 +1589,9 @@ sub kill_signal_handler (){ #Handler TERM signal. $SIG{'TERM'} = \&kill_signal_handler; +# Ignore SIGCHLD +$SIG{'CHLD'} = 'IGNORE'; + # Check command line arguments print_usage unless ($#ARGV == 0); $ConfDir = fix_directory ($ARGV[0]); @@ -1852,12 +1855,10 @@ while (1) { } # Finish if broker agent else { - last; + exit (0); } } - - __END__ =head1 EXIT STATUS