Ignore in a way that can't be inherited
authorJamie Cameron <jcameron@webmin.com>
Wed, 4 Aug 2010 13:47:07 +0000 (06:47 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 4 Aug 2010 13:47:07 +0000 (06:47 -0700)
init/start_stop.cgi

index 9698bb3..131ebaf 100755 (executable)
@@ -20,7 +20,7 @@ $action ||= 'stop';
 $cmd = $in{'file'}." ".$action;
 
 # In case the action was Webmin
-$SIG{'TERM'} = 'IGNORE';
+$SIG{'TERM'} = sub { };
 
 # Run the command
 print &text('ss_exec', "<tt>$cmd</tt>"),"<p>\n";