aboutsummaryrefslogtreecommitdiff
path: root/runit/sv.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-07 16:02:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-07 16:02:00 +0200
commit8f24f9812df8dec34a991b2c572092639586f154 (patch)
treefcfc01da5aa08243cd1f0ea3bc2f95a8d3206ada /runit/sv.c
parentd6b05eb9c27196ebe89b180d71ad86bf42e97002 (diff)
downloadbusybox-w32-8f24f9812df8dec34a991b2c572092639586f154.tar.gz
busybox-w32-8f24f9812df8dec34a991b2c572092639586f154.tar.bz2
busybox-w32-8f24f9812df8dec34a991b2c572092639586f154.zip
stop using non-standard macro, use WEXITSTATUS instead
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit/sv.c')
-rw-r--r--runit/sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 20e86199a..e3b9a4e31 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -337,7 +337,7 @@ static int checkscript(void)
337 bb_perror_msg(WARN"cannot %s child %s/check", "wait for", *service); 337 bb_perror_msg(WARN"cannot %s child %s/check", "wait for", *service);
338 return 0; 338 return 0;
339 } 339 }
340 return !wait_exitcode(w); 340 return WEXITSTATUS(w) == 0;
341} 341}
342 342
343static int check(const char *a) 343static int check(const char *a)