diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-06-16 09:18:43 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-06-16 09:18:43 +0000 |
commit | e40b1bb94254ee08d029b3a91386fcd4ac88c210 (patch) | |
tree | 6b1e35fa939a1aded02ae43815a1fee4076bfa87 /net/rmsg | |
parent | Unbreak on -current. (diff) |
Fix build on current.
Submitted by: mike
Notes
Notes:
svn path=/head/; revision=61349
Diffstat (limited to 'net/rmsg')
-rw-r--r-- | net/rmsg/files/patch-server.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/rmsg/files/patch-server.c b/net/rmsg/files/patch-server.c new file mode 100644 index 000000000000..72aaf6245f0b --- /dev/null +++ b/net/rmsg/files/patch-server.c @@ -0,0 +1,21 @@ +--- server.c Tue Jun 4 21:40:19 2002 ++++ server.c Tue Jun 4 21:42:56 2002 +@@ -146,7 +146,7 @@ + { + int child, pid, fd; + unsigned int retval = 0; +-#if defined(HPUX) || defined(SVR4) ++#if defined(HPUX) || defined(SVR4) || defined(BSD) + int status; + #else + union wait status; +@@ -202,6 +202,9 @@ + #if defined(HPUX) || defined(SVR4) + if (status & 0xff) retval = -1; + else retval = ((status & 0xffff) >> 8); ++#elif defined(BSD) ++ if (WIFSIGNALED(status)) retval = -1; ++ else retval = WEXITSTATUS(status); + #else + if (status.w_termsig) retval = -1; /* ended in signal */ + else retval = status.w_retcode; |