in reply to Re^2: simple timeout
in thread simple timeout
eval { local $SIG{ALRM} = sub { die "alarm\n" }; # NB: \n required alarm 2; `dir /s c:`; alarm 0; };
Surely alarm should interrupt the timeconsuming `dir /s c:` (recursive dir) after 2 seconds?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: simple timeout
by zejames (Hermit) on Nov 08, 2004 at 14:30 UTC | |
by disciple01 (Novice) on Nov 08, 2004 at 16:49 UTC |