jaco has asked for the wisdom of the Perl Monks concerning the following question:
That means that doing nearly anything in your handler could in theory trigger a memory fault andhas always been a concern. Anyway, it's something like ...
subsequent core dump.
#!/usr/bin/perl $SIG{ALRM} = sub {alarm(0);print "blah\n";alarm(10);}; open(FILE, "tail -f /var/log/messages|"); $| = 1; alarm(10); while(<FILE>){ print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reoccuring time based event inside a loop (threads)
by BrowserUk (Patriarch) on Oct 06, 2004 at 17:43 UTC | |
|
Re: Reoccuring time based event inside a loop
by Joost (Canon) on Oct 06, 2004 at 16:19 UTC |