fiss-minit

A standalone service supervisor based on minit
Log | Files | Refs | README | LICENSE

commit 9f9981b7d1894c84231af7f0c68e1501fa6cbbfc
parent 9acfcd3fca460c6bd4538cb5c2a93cad174d4476
Author: leitner <leitner>
Date:   Thu,  8 Nov 2001 15:18:38 +0000

increase poll timeout, try to make top not display "run" as process name

Diffstat:
Mminit.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/minit.c b/minit.c @@ -192,7 +192,7 @@ again: argv[0]=argv0; if (__stdin != 0) dup2(__stdin,0); if (__stdout != 1) dup2(__stdout,1); - execve("run",argv,environ); + execve(argv0,argv,environ); _exit(0); abort: free(argv0); @@ -407,7 +407,7 @@ main(int argc, char *argv[]) { dowait=0; */ childhandler(); /* } */ - switch (poll(&pfd,nfds,500)) { + switch (poll(&pfd,nfds,500000)) { case -1: if (errno==EINTR) { childhandler();