1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/news/nntp/files/patch-server-netaux.c
Dirk Meyer fa2d81e6f9 - fix for child reaping
Submitted by:	Scott Hazen Mueller
2006-08-29 04:14:27 +00:00

25 lines
441 B
C

--- server/netaux.c.orig Tue Nov 1 07:08:56 1994
+++ server/netaux.c Sun Aug 27 21:52:42 2006
@@ -20,6 +20,9 @@
#else
#include <sys/time.h>
#endif
+#ifdef BSD_44
+#include <sys/resource.h>
+#endif
/*
* read_again -- (maybe) read in the active file again,
@@ -262,7 +265,11 @@
reaper()
{
#ifndef USG
+#ifdef BSD_44
+ int status;
+#else
union wait status;
+#endif
while (wait3(&status, WNOHANG, (struct rusage *)0) > 0)
;