dovert has asked for the wisdom of the Perl Monks concerning the following question:
update 2004/8/10: Red Hat has shown me (by invoking the perl in a 'kernel backward compatibility mode' that there is some (as yet unidentified) incompatibility between perl 5 and the new kernel, probably in the threading code. We're still trying to peel the onion.
Thanks for your responses - a little feedback for the interested. The child process never gets to main() in the
hang situation, (ie is not loooking for input) In fact, swapping 'ls' in as the called program doesn't change the behavior.
I have a working perl program that, among other things, uses system() to run some other programs. I upgraded a Linux box from RH 9.3 to Enterprise Linux WS 3.1 and the program no longer works. (This is Perl 5.004_04) I can see that perl has forked, but the child is hanging, and the parent is waiting. ^C interrupts the child, and the parent completes. I discovered that if I run the program in `backticks`, it behaves properly. But I don't want to seek out all the system() calls & replace them & I'd like to know what is going on. So, I am interested in any insight about what is different enough about these two ways of running the program, that might make the difference. Or if you have heard of problems in this version of RH Linux. (It is not 'convenient' to upgrade the perl version, BTW) I'd be happy for any clues about where to look.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: system() vs `backtick`
by Prior Nacre V (Hermit) on Aug 06, 2004 at 19:21 UTC | |
Re: system() vs `backtick`
by dave_the_m (Monsignor) on Aug 06, 2004 at 19:24 UTC | |
Re: system() vs `backtick`
by etcshadow (Priest) on Aug 06, 2004 at 20:36 UTC | |
by ambrus (Abbot) on Aug 06, 2004 at 23:01 UTC | |
Re: system() vs `backtick`
by hmerrill (Friar) on Aug 06, 2004 at 19:43 UTC | |
Re: system() vs `backtick`
by sgifford (Prior) on Aug 06, 2004 at 22:00 UTC | |
Re: system() vs `backtick`
by hossman (Prior) on Aug 07, 2004 at 00:31 UTC | |
by etcshadow (Priest) on Aug 07, 2004 at 02:45 UTC |
Back to
Seekers of Perl Wisdom