Skip to content

Instantly share code, notes, and snippets.

@gsauthof
Created October 27, 2018 07:52
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 gsauthof/d562355dc8e220c9cf8d2faa921388d0 to your computer and use it in GitHub Desktop.
Save gsauthof/d562355dc8e220c9cf8d2faa921388d0 to your computer and use it in GitHub Desktop.
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int main()
{
int pid = vfork();
if (pid == 0) {
_exit(0);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment