Created
April 16, 2015 00:37
-
-
Save Killavus/f903a044502cb1bc5b2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 <unistd.h> | |
#include <sys/wait.h> | |
#include <stdlib.h> | |
int main(void) { | |
pid_t cpid = fork(); | |
if(cpid == 0) { | |
exit(0); | |
} | |
else | |
{ | |
for(;;) {} | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment