Date: Wed, 28 Apr 2010 22:26:30 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r207345 - head/sbin/hastd Message-ID: <201004282226.o3SMQUUZ076746@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004282226.o3SMQUUZ076746>