summaryrefslogtreecommitdiff
path: root/runit/svlogd.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-06-07 16:02:00 +0200
committerDenys Vlasenko2009-06-07 16:02:00 +0200
commit8f24f9812df8dec34a991b2c572092639586f154 (patch)
treefcfc01da5aa08243cd1f0ea3bc2f95a8d3206ada /runit/svlogd.c
parentd6b05eb9c27196ebe89b180d71ad86bf42e97002 (diff)
downloadbusybox-8f24f9812df8dec34a991b2c572092639586f154.zip
busybox-8f24f9812df8dec34a991b2c572092639586f154.tar.gz
stop using non-standard macro, use WEXITSTATUS instead
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit/svlogd.c')
-rw-r--r--runit/svlogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c
index 9609fa3..25799f6 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -281,7 +281,7 @@ static unsigned processorstop(struct logdir *ld)
if (ld->fddir == -1) return 1;
while (fchdir(ld->fddir) == -1)
pause2cannot("change directory, want processor", ld->name);
- if (wait_exitcode(wstat) != 0) {
+ if (WEXITSTATUS(wstat) != 0) {
warnx("processor failed, restart", ld->name);
ld->fnsave[26] = 't';
unlink(ld->fnsave);