Author: pjd
Date: Wed Apr 28 22:26:30 2010
New Revision: 207345
URL: http://svn.freebsd.org/changeset/base/207345
Log:
Use WEXITSTATUS() to obtain real exit code.
MFC after: 3 days
Modified:
head/sbin/hastd/hastd.c
Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c Wed Apr 28 22:25:27 2010 (r207344)
+++ head/sbin/hastd/hastd.c Wed Apr 28 22:26:30 2010 (r207345)
@@ -294,9 +294,10 @@ listen_accept(void)
"Waiting for worker process (pid=%u)
failed",
(unsigned int)res->hr_workerpid);
/* See above. */
- } else if (status != 0) {
+ } else if (WEXITSTATUS(status) != 0) {
pjdlog_error("Worker process (pid=%u) exited
ungracefully: status=%d.",
- (unsigned int)res->hr_workerpid, status);
+ (unsigned int)res->hr_workerpid,
+ WEXITSTATUS(status));
/* See above. */
} else {
pjdlog_debug(1,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"