develooper Front page | perl.perl5.porters | Postings from April 2004

Re: FileCache 1.03 (as per 5.8.3) breaks system()

Thread Previous | Thread Next
From:
Alan Burlison
Date:
April 18, 2004 02:45
Subject:
Re: FileCache 1.03 (as per 5.8.3) breaks system()
Message ID:
40824D99.70207@sun.com
Tim Jenness wrote:

>> # Open in their package.
>> sub cacheout_open {
>>+  # Reap our children
>>+  local $SIG{CLD}  ||= 'IGNORE'if $Config{sig_name} =~ /\bCHLD\b/;
>>+  local $SIG{CHLD} ||= 'IGNORE'if $Config{sig_name} =~ /\bCLD\b/;
>>+  local $SIG{PIPE} ||= 'IGNORE'if $Config{sig_name} =~ /\bPIPE\b/;
> 
> Without looking at the context, this doesn't seem correct since CLD is 
> being equated with CHLD and vice versa.

Nice catch, yes you are correct.  It should be:

+  local $SIG{CLD}  ||= 'IGNORE'if $Config{sig_name} =~ /\bCLD\b/;
+  local $SIG{CHLD} ||= 'IGNORE'if $Config{sig_name} =~ /\bCHLD\b/;
+  local $SIG{PIPE} ||= 'IGNORE'if $Config{sig_name} =~ /\bPIPE\b/;

-- 
Alan Burlison
--


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About