Created
November 28, 2012 21:13
-
-
Save bigpresh/4164554 to your computer and use it in GitHub Desktop.
testing forking in route handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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