[Pkg-sysvinit-devel] Bug#679630: insserv: Dependency-based boot changes SigIgn mask of daemons

Petter Reinholdtsen pere at hungry.com
Mon Apr 14 21:04:02 UTC 2014


[Michael Hanke]
> Unfortunately, the issue is still present -- on an up-to-date Debian
> wheezy. I still have no clue who to trigger this behavior other than
> a reboot of those machines. I can still reliably fix it by a restart
> of the condor daemons once the machines are fully up.

Right.  Then we should try to fix it. :)

> If there is anything I can try on those machines that would help you
> determine the problem please let me know.

Please try this patch.  It make sure run_single() and detach() both
reset the SIGINT signal.

Index: startpar.c
===================================================================
--- startpar.c  (revision 192)
+++ startpar.c  (working copy)
@@ -732,6 +732,7 @@
          (void)sigfillset(&nmask);
          sigprocmask(SIG_UNBLOCK, &nmask, NULL);
 
+         (void)signal(SIGINT,  SIG_DFL);
          (void)signal(SIGHUP,  SIG_DFL);
          (void)signal(SIGQUIT, SIG_DFL);
          (void)signal(SIGSEGV, SIG_DFL);

I suspect my test cases all ended up using the "fixed" code path.  Not
sure how to trigger the detach() code path in a test case. :)

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list