Judger/tests/test_src/seccomp/fork.c
2016-10-24 23:01:55 +08:00

17 lines
258 B
C

#include <unistd.h>
#include <stdio.h>
int main()
{
pid_t pid = fork();
if (pid > 0) {
printf("i'm parent");
}
else if (pid == 0) {
printf("i'm children");
}
else {
printf("fork failed");
}
return 0;
}