Skip to content

Instantly share code, notes, and snippets.

@rgs1
Created January 14, 2018 19:38
Show Gist options
  • Save rgs1/00b66a3327bc522f33259bb43e3b8788 to your computer and use it in GitHub Desktop.
Save rgs1/00b66a3327bc522f33259bb43e3b8788 to your computer and use it in GitHub Desktop.
#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