Skip to content

Instantly share code, notes, and snippets.

@nampereira
Last active February 5, 2018 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nampereira/a2d3780d01e5e06015f423f684e75ea0 to your computer and use it in GitHub Desktop.
Save nampereira/a2d3780d01e5e06015f423f684e75ea0 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
printf("I'm..\n");
if (fork() != 0) {
printf("..the..\n");
if (fork() != 0) {
printf("father!\n");
if (fork() != 0) exit(0);
}
}
printf("I'll never join you!\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment