17 volatile int glov
, gct
;
20 int main(int argc
, char *argv
[]);
25 void parent1(int childpid
);
37 if (argc
== 2) m
= atoi(argv
[1]);
39 for (i
= 0; i
< ITERATIONS
; i
++) {
40 if (m
& 00001) test1a();
41 if (m
& 00002) test1b();
45 return(-1); /* impossible */
54 for (i
= 0; i
< n
; i
++) {
57 printf("\nTest 1 fork failed\n");
87 for (i
= 0; i
< 4; i
++) {
92 printf("Test 1 fork failed\n");
101 void parent1(childpid
)
107 for (n
= 0; n
< 5000; n
++);
108 while (kill(childpid
, SIGNUM
) < 0) /* null statement */
114 int s
; /* for ANSI */