Skip Menu |

This queue is for tickets about the IPC-Run CPAN distribution.

Report information
The Basics
Id: 5852
Status: resolved
Priority: 0/
Queue: IPC-Run

People
Owner: RSOD [...] cpan.org
Requestors: jacob [...] j-e-b.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.78
Fixed in: (no value)



Subject: Insecure dependency on $SIG{CHILD}
IPC::Run will fail to get the return status of any child if $SIG{CHLD} is set. This should at least trigger a warning e.g. in line 3349 'warn ... if defined $SIG{CHLD};' Also if this happens, line 3390 sets '$kid->{RESULT} = "unknown result, unknown PID" ;', but then line 3518 will try to 'return map $_->{RESULT} >> 8, @{$self->{KIDS}} ;' --- which will lead to a warning about the non-numerical value in '>>'.
[guest - Wed Mar 31 08:26:27 2004]: Show quoted text
> IPC::Run will fail to get the return status of any child if $SIG{CHLD} > is set. This should at least trigger a warning e.g. in line 3349 > 'warn ... if defined $SIG{CHLD};'
Alright, I'll look into adding this warning. Show quoted text
> Also if this happens, line 3390 sets '$kid->{RESULT} = "unknown > result, unknown PID" ;', but then line 3518 will try to 'return map > $_->{RESULT} >> 8, @{$self->{KIDS}} ;' --- which will lead to a > warning about the non-numerical value in '>>'.
The next release to CPAN in 1-3 days will include a fix for this warning, thanks. - R.
Ticket migrated to github as https://github.com/toddr/IPC-Run/issues/67