Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: why does ignoring sigCHLD corrupt return value from system()?by TheHobbit (Pilgrim) |
on Nov 05, 2003 at 10:14 UTC ( [id://304664]=note: print w/replies, xml ) | Need Help?? |
Hi, Does exactly the same thing as "exec LIST", except that a fork is done first, and the parent process waits for the child process to complete. The parent process needs to intercept SIGCHLD in order to wait(2) for the child process to complete. As I stated above, this implies that the value of $SIG{CHLD} must be localized to same value during the execution of system, and so the user value of it outside that execution is (or shuld be) irrelevant. Just my 5 (euro) cents. Leo TheHobbit
In Section
Seekers of Perl Wisdom
|
|