diff options
author | Denys Vlasenko | 2009-06-07 16:02:00 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-07 16:02:00 +0200 |
commit | 8f24f9812df8dec34a991b2c572092639586f154 (patch) | |
tree | fcfc01da5aa08243cd1f0ea3bc2f95a8d3206ada /runit/runsv.c | |
parent | d6b05eb9c27196ebe89b180d71ad86bf42e97002 (diff) | |
download | busybox-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/runsv.c')
-rw-r--r-- | runit/runsv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 6d34dc1..5cb5d2f 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -252,7 +252,8 @@ static unsigned custom(struct svdir *s, char c) char a[10]; struct stat st; - if (s->islog) return 0; + if (s->islog) + return 0; strcpy(a, "control/?"); a[8] = c; /* replace '?' */ if (stat(a, &st) == 0) { @@ -274,7 +275,7 @@ static unsigned custom(struct svdir *s, char c) warn_cannot("wait for child control/?"); return 0; } - return !wait_exitcode(w); + return WEXITSTATUS(w) == 0; } } else { if (errno != ENOENT) |