mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-01 18:01:41 +00:00
f7cad29eef
Squash from a494eed to 1974b83 by virusdefender
21 lines
299 B
C
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;
|
|
} |