8
if ((flags = fcntl(0, F_GETFL)) < 0) {
9
perror("fcntl 1st GETFL");
11
printf ("flags = %x\n", flags);
13
switch(child = fork()) {
15
printf("error during fork\n");
18
execlp("test_create", "test_create", NULL);
26
if ((flags = fcntl(0, F_GETFL)) < 0) {
27
perror("fcntl parent GETFL");
29
printf ("parent %d flags = %x\n", child, flags);