1 // Test that fork fails gracefully.
2 // Tiny executable so that the limit can be filling the proc table.
11 printf(int fd
, char *s
, ...)
13 write(fd
, s
, strlen(s
));
21 printf(1, "fork test\n");
32 printf(1, "fork claimed to work N times!\n", N
);
38 printf(1, "wait stopped early\n");
44 printf(1, "wait got too many\n");
48 printf(1, "fork test OK\n");