saintmike has asked for the wisdom of the Perl Monks concerning the following question:
The following code snippet terminates ok:
but if you add a variable holding a regular expression, likeopen FH , "| cat " ; open STDOUT, ">&FH";
then this code hangs, according to strace while waiting for the forked process to terminate:my $foo = qr(a); open FH , "| cat " ; open STDOUT, ">&FH";
Is this a known perl bug?... rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 waitpid(29096, ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Variable triggers global destruction hang
by ikegami (Patriarch) on Sep 12, 2009 at 04:21 UTC | |
by saintmike (Vicar) on Sep 12, 2009 at 06:26 UTC | |
by ikegami (Patriarch) on Sep 12, 2009 at 06:44 UTC | |
by ig (Vicar) on Sep 12, 2009 at 07:03 UTC | |
by ikegami (Patriarch) on Sep 12, 2009 at 07:11 UTC | |
| |
by ig (Vicar) on Sep 12, 2009 at 07:19 UTC |
Back to
Seekers of Perl Wisdom