diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2001-05-10 07:10:24 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2001-05-10 07:10:24 +0000 |
commit | 5069db76e50815dc49c49823d6e92143ad6d2718 (patch) | |
tree | c3a9983c558345c4162455627097ec92f52dd813 /sysutils | |
parent | 0eac471a1354694b570f5eb64ce3c2aecfb96da6 (diff) |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/daemontools/Makefile | 1 | ||||
-rw-r--r-- | sysutils/daemontools/files/patch-supervise.c | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/daemontools/Makefile b/sysutils/daemontools/Makefile index 25c097105aa2..465aeb9bf851 100644 --- a/sysutils/daemontools/Makefile +++ b/sysutils/daemontools/Makefile @@ -7,6 +7,7 @@ PORTNAME= daemontools PORTVERSION= 0.70 +PORTREVISION= 1 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..bb9416d059f2 --- /dev/null +++ b/sysutils/daemontools/files/patch-supervise.c @@ -0,0 +1,24 @@ +diff -urN supervise.c supervise.c +--- supervise.c Mon Mar 6 07:21:09 2000 ++++ supervise.c Mon Apr 23 11:15:10 2001 +@@ -90,7 +90,12 @@ + void trystart(void) + { + int f; ++ static int firstpassed = 0; + ++ if (firstpassed) ++ sleep(1); ++ else ++ firstpassed = 1; + switch(f = fork()) { + case -1: + strerr_warn4(WARNING,"unable to fork for ",dir,", sleeping 60 seconds: ",&strerr_sys); +@@ -105,7 +110,6 @@ + pid = f; + pidchange(); + announce(); +- sleep(1); + } + + void doit(void) |