diff options
| author | Peter Pentchev <roam@FreeBSD.org> | 2010-03-15 09:29:05 +0000 |
|---|---|---|
| committer | Peter Pentchev <roam@FreeBSD.org> | 2010-03-15 09:29:05 +0000 |
| commit | 9039844b13aa26ff09224fa2c0ef9bd4360a6706 (patch) | |
| tree | af83833cc37b27c4082c94b1ebccc828a1bbb00f /sysutils/daemontools | |
| parent | d68ae86d60222735bf759898b8007778bbefaf3b (diff) | |
Notes
Diffstat (limited to 'sysutils/daemontools')
| -rw-r--r-- | sysutils/daemontools/Makefile | 2 | ||||
| -rw-r--r-- | sysutils/daemontools/files/patch-supervise.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile index d39fa496b2c0..44717a649a5c 100644 --- a/sysutils/daemontools/Makefile +++ b/sysutils/daemontools/Makefile @@ -7,7 +7,7 @@ PORTNAME= daemontools PORTVERSION= 0.76 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= sysutils MASTER_SITES= http://cr.yp.to/daemontools/ \ ftp://cr.yp.to/daemontools/ diff --git a/sysutils/daemontools/files/patch-supervise.c b/sysutils/daemontools/files/patch-supervise.c new file mode 100644 index 000000000000..13c73e44574a --- /dev/null +++ b/sysutils/daemontools/files/patch-supervise.c @@ -0,0 +1,21 @@ +Description: Fix the supervise(8) operation if fork(2) fails. +Origin: http://marc.info/?l=djbdns&m=126856288028988&w=2 +Author: Matthew Dempsky <matthew@dempsky.org> +Last-Update: 2010-03-15 + +--- supervise.c.orig ++++ supervise.c +@@ -148,11 +148,12 @@ + pidchange(); + announce(); + if (flagexit) return; +- if (flagwant && flagwantup) trystart(); + break; + } + } + ++ if (flagwant && flagwantup && !pid) trystart(); ++ + if (read(fdcontrol,&ch,1) == 1) + switch(ch) { + case 'd': |
