diff options
author | Gerrit Pape <pape@smarden.org> | 2002-10-06 09:53:55 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-10-06 09:53:55 +0000 |
commit | 452c4c7e5c7ecd1b5444ef19904d91a3b554bb50 (patch) | |
tree | 59bfff5bf4420bfc8001f510ea071624a3af21c1 /src/runsv.c | |
parent | b2d56ebfb515c5b8a0a2a5481a2e8d8fd294505b (diff) | |
download | runit-452c4c7e5c7ecd1b5444ef19904d91a3b554bb50.tar.gz runit-452c4c7e5c7ecd1b5444ef19904d91a3b554bb50.tar.xz runit-452c4c7e5c7ecd1b5444ef19904d91a3b554bb50.zip |
0.6.4.
Diffstat (limited to 'src/runsv.c')
-rw-r--r-- | src/runsv.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/runsv.c b/src/runsv.c index 854ec5a..afdf094 100644 --- a/src/runsv.c +++ b/src/runsv.c @@ -61,14 +61,10 @@ void usage () { strerr_die4x(1, "usage: ", progname, USAGE, "\n"); } void fatal(char *m) { - strerr_warn5("runsv ", dir, ": fatal: ", m, ": ", &strerr_sys); - sleep(1); - exit(111); + strerr_die5sys(111, "runsv ", dir, ": fatal: ", m, ": "); } void fatal2(char *m1, char *m2) { - strerr_warn6("runsv ", dir, ": fatal: ", m1, m2, ": ", &strerr_sys); - sleep(1); - exit(111); + strerr_die6sys(111, "runsv ", dir, ": fatal: ", m1, m2, ": "); } void warn(char *m) { strerr_warn5("runsv ", dir, ": warning: ", m, ": ", &strerr_sys); @@ -91,7 +87,7 @@ void s_term() { void update_status(struct svdir *s) { unsigned long l; int fd; - char status[19]; + char status[20]; char bspace[64]; buffer b; char spid[FMT_ULONG]; @@ -183,6 +179,7 @@ void update_status(struct svdir *s) { status[18] =1; else status[18] =0; + status[19] =s->state; if ((fd =open_trunc("supervise/status.new")) == -1) { warn("unable to open supervise/status.new"); return; |