Last active
January 20, 2020 19:23
-
-
Save Buffer0x7cd/a4a9953145d9f7afff595ebf2cd52802 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
pid_t Fork(void) | |
{ | |
pid_t pid = fork(); | |
if (pid < 0) | |
{ | |
perror("Error, while calling fork\n"); | |
exit(EXIT_FAILURE); | |
} | |
return pid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment