From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076330121432.tru64-unix-managers.marc@archive.invalid> From: "Michael R. Kline" Date: Tue, 19 Mar 1996 15:24:11 +0000 To: tru64-unix-managers Subject: trouble using wait3 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076330121432 Hello Gurus, I tried searching the archive at Stanford for this but the search utility is currently down, so if this has been covered before, please forgive me. I am writing code for a process that will fork and I tried the following code for cleaning up zombie processes (found in Internetworking with TCP/IP by Comer & Stevens): #include #include #include /*----------------------------------------------------------------------*/ /* reaper - clean up zombie children */ /*----------------------------------------------------------------------*/ int reaper() { union wait status; while (wait3(&status, WNOHANG, (struct rusage *)0) >= 0) /* empty */; } when compiling this code I get the following error: /usr/lib/cmplrs/cc/cfe: Error: TCPechod.c, line 100: storage size for 'status' isn't known union wait status; ---------- ^ Now, if I add the union wait definition from to my code it compiles fine. What gives????? Mike -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael R. Kline mike@lib.utexas.edu General Libraries Office: (512) 495-4391 University of Texas at Austin FAX : (512) 495-4347 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~