Created
January 14, 2018 19:38
-
-
Save rgs1/00b66a3327bc522f33259bb43e3b8788 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) | |
{ | |
pid_t pid; | |
// signal(SIGCHLD, SIG_IGN); | |
pid = fork(); | |
if (pid == 0) { | |
exit(0); | |
} | |
while (1) { | |
pause(); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment