Permalink
Browse files

supervise: Revert "when using setsid, signal the entire process group"

This breaks services that rely on a master process doing a clean
shutdown of the children before exiting.
  • Loading branch information...
bruceg committed Apr 1, 2014
1 parent 2469500 commit 4b008bcb14e860ceea6f314b234bbd968c319f7f
Showing with 3 additions and 11 deletions.
  1. +1 −3 supervise.8.in
  2. +0 −2 supervise.c
  3. +2 −6 svc.8.in
View
@@ -38,9 +38,7 @@ Unless the file
.B ./no-setsid
exists,
.B supervise
will run subordinate processes in a new process group. All signals requested by the
.BR svc (8)
program will be sent to the process group instead of the process.
will run subordinate processes in a new process group.
If
.B ./log
View
@@ -325,7 +325,6 @@ void doit(void)
svc = &svcmain;
killpid = svc->pid;
if (stat_exists("no-setsid")==0) killpid = -killpid;
while (read(fdcontrol,&ch,1) == 1)
switch(ch) {
case '+':
@@ -341,7 +340,6 @@ void doit(void)
case 'l':
svc = &svcmain;
killpid = svc->pid;
if (stat_exists("no-setsid")==0) killpid = -killpid;
break;
case 'd':
svc->flagwant = 1;
View
@@ -21,15 +21,11 @@ in turn.
.TP
.B \-\=
Send all subsequent signals to the parent process instead of its
process group. This is the default when the file
.IB s/no-setsid
is present.
process group. This is the default.
.TP
.B \-\+
Send all subsequent signals to the entire process group instead of just
the parent process. This is the default unless the file
.IB s/no-setsid
is present.
the parent process.
.TP
.B \-L
Send all subsequent signals to the running

0 comments on commit 4b008bc

Please sign in to comment.