Skip to content

Instantly share code, notes, and snippets.

@gfx

gfx/destroy2.pl

Created Dec 19, 2010
Embed
What would you like to do?
#!perl
use strict;
use Scope::Guard;
$SIG{INT} = sub { exit 0 };
my $sg = Scope::Guard->new(sub { warn "hi"; sleep 10 });
print "Please send SIGINT\n";
exit 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.