Skip to content

Instantly share code, notes, and snippets.

@TimToady
Created February 14, 2013 20:32
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 TimToady/4956142 to your computer and use it in GitHub Desktop.
Save TimToady/4956142 to your computer and use it in GitHub Desktop.
use NativeCall;
sub fork() returns Int is native { ... }
if fork() -> $pid {
print "I am the proud parent of $pid.\n";
}
else {
print "I am $*PID. Have you seen my mommy?\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment