15 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");
89 for (i
= 0; i
< 4; i
++) {
94 printf("Test 1 fork failed\n");
103 void parent1(childpid
)
109 for (n
= 0; n
< 5000; n
++);
110 while (kill(childpid
, SIGNUM
) < 0) /* null statement */
116 int s
; /* for ANSI */