25 lines
316 B
C
25 lines
316 B
C
#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);
|
|
}
|