Skip to content

Instantly share code, notes, and snippets.

@gsauthof gsauthof/vfork.c
Created Oct 27, 2018

Embed
What would you like to do?
#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
You can’t perform that action at this time.