Judger/tests/3/Main.c
virusdefender f7cad29eef add tests
Squash from a494eed to 1974b83 by virusdefender
2016-01-23 18:19:34 +08:00

21 lines
299 B
C

/*
* 不允许的系统调用 clone
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
pid_t pid;
printf("fork test\n");
pid = fork();
if(pid < 0){
printf("fork failed\n");
}
else {
printf("fork succeeded\n");
}
return 0;
}