move test programs

This commit is contained in:
Tomoki Shirasawa
2018-06-07 10:08:48 +09:00
parent 6602cf442c
commit 139123dc12
10 changed files with 951 additions and 0 deletions

24
test/issues/840/C840T03.c Normal file
View File

@ -0,0 +1,24 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
int
main(int argc, char **argv)
{
pid_t pid;
pid = fork();
if (pid == 0) {
sleep(1);
kill(getppid(), SIGKILL);
exit(0);
}
for(;;);
exit(0);
}