☰
Debian Codegraph
@
20260402.0-1
/
/
eg
/
abuse
/
timers
☽
☼
eg/abuse/timers
code
plain
raw
Artistic
or
GPL-1+
Some parts copyright 2008-2009 Adam Kennedy.; Copyright 1999 Barrie Slaymaker.; Copyright (c) by Barrie Slaymaker, Eric Cholet, and Todd Rinaldo.
debian/copyright
1
#!/usr/bin/perl -w
2
3
use strict;
4
use IPC::Run qw( :all );
5
6
$IPC::Run::debug = 10;
7
8
alarm 5;
9
$SIG{ALRM} = sub { die "timeout never fired!" };
10
11
my $out;
12
run [ $^X, '-e', 'sleep 10' ], ">", \$out, timeout 1;