<sys/socket.h>: turn off MSG_NOSIGNAL
[minix3.git] / test / t60b.c
blob637517f3184f65b707f6e56880b9ee63c1ce1b91
1 #include <sys/types.h>
2 #include <sys/wait.h>
3 #include <unistd.h>
4 #include <stdlib.h>
5 #include <stdio.h>
7 int main(int argc, char **argv)
9 /* Return the tainted state of our child to our parent */
10 pid_t childpid;
11 int status;
13 childpid = fork();
14 if (childpid == (pid_t) -1) exit(-2);
15 else if (childpid == 0) {
16 exit(issetugid());
17 } else {
18 wait(&status);
21 return(WEXITSTATUS(status));