--- a/Unix.st Tue Sep 10 15:14:59 1996 +0200
+++ b/Unix.st Tue Sep 10 15:51:31 1996 +0200
@@ -7436,17 +7436,23 @@
%{
#ifdef UNIX_LIKE
int p;
+
# if defined(HAS_WAITPID)
+
int s;
-# define __WAIT waitpid(-1, &s, blocking == true ? WUNTRACED : WNOHANG|WUNTRACED)
+# define __WAIT waitpid(-1, &s, blocking == true ? WUNTRACED : WNOHANG|WUNTRACED)
+
# else
# if defined(HAS_WAIT3)
+
union wait s;
-# define __WAIT wait3(&s, blocking == true ? WUNTRACED : WNOHANG|WUNTRACED, 0)
-# else /*!HAS_WAIT3*/
+# define __WAIT wait3(&s, blocking == true ? WUNTRACED : WNOHANG|WUNTRACED, 0)
+
+# else /* neithe waitpid, nor wait3; use wait, which is blocking */
+
int s;
-# define __WAIT wait(&s)
-# define __BLOCKING_WAIT__ 1
+# define __WAIT wait(&s)
+# define __BLOCKING_WAIT__ 1
# if !defined(WIFEXITED)
# define WIFEXITED(stat) (((int)((stat)&0377))==0)
@@ -7843,6 +7849,6 @@
!OperatingSystem class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.164 1996-08-15 12:57:44 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Attic/Unix.st,v 1.165 1996-09-10 13:51:31 cg Exp $'
! !
OperatingSystem initialize!