runsvinit/zombietest/build/zombie.c

19 lines
206 B
C
Raw Normal View History

2015-09-28 10:25:44 +00:00
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main ()
{
pid_t child_pid;
child_pid = fork ();
if (child_pid > 0) {
sleep (60);
}
else {
exit (0);
}
return 0;
}