1 /* Check that TRT happens when we reach the #threads implementation limit.
12 #include <sys/types.h>
20 for (i
= 0; i
< 500; i
++)
32 int stacksize
= 16384;
34 for (i
= 0; i
< 1000; i
++)
36 char *stack
= malloc (stacksize
);
40 pid
= clone (process
, (char *) stack
+ stacksize
- 64,
41 (CLONE_VM
| CLONE_FS
| CLONE_FILES
| CLONE_SIGHAND
)
45 /* FIXME: Read sysconf instead of magic number. */
48 fprintf (stderr
, "Bad clone %d\n", pid
);