Skip to content

Instantly share code, notes, and snippets.

@bigpresh
Created November 28, 2012 21:13
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 bigpresh/4164554 to your computer and use it in GitHub Desktop.
Save bigpresh/4164554 to your computer and use it in GitHub Desktop.
testing forking in route handler
#!/usr/bin/perl
use Dancer;
get '/' => sub {
fork and return "Content!\n";
sleep 10;
warn "Child process done\n";
exit;
};
dance;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment