Created
October 2, 2015 00:29
-
-
Save ronaldxs/910f61f3c6c3fd4fa74d to your computer and use it in GitHub Desktop.
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
my $proc = Proc::Async.new( | |
'perl6', '-e', | |
'say "hello"; signal(SIGINT).tap( { say "signal ..." }); sleep 5; say "bye"' | |
); | |
$proc.start; | |
say $proc.args.perl; | |
sleep 1; | |
$proc.kill('INT'); | |
sleep 1; | |
$proc.kill('INT'); | |
sleep 6; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment