Skip Menu |

This queue is for tickets about the forks CPAN distribution.

Report information
The Basics
Id: 13889
Status: resolved
Priority: 0/
Queue: forks

People
Owner: RYBSKEJ [...] cpan.org
Requestors: pubz [...] free.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.16
Fixed in: (no value)



Subject: forks seems broke system() call
Here come a very simple script which works perfectly. Remove the # before forks, the system command is executed but return -1 :( Any of you ever see that before ? #!/usr/bin/perl #use forks; system("ls >/dev/null 2>&1")==0 or print $?; Running on perl v5.8.6 Regards, Erwan
Can you download and install forks 0.18 and see if this problem persists? If it does, please attach your perl configuration (perl -V) in your response. -Eric [guest - Wed Jul 27 09:24:40 2005]: Show quoted text
> Here come a very simple script which works perfectly. Remove the # > before forks, the system command is executed but return -1 :( > > Any of you ever see that before ? > > #!/usr/bin/perl > #use forks; > system("ls >/dev/null 2>&1")==0 or print $?; > > > Running on perl v5.8.6 > > Regards, > Erwan
[RYBSKEJ - Thu Dec 8 18:23:31 2005]: Show quoted text
> Can you download and install forks 0.18 and see if this problem > persists? If it does, please attach your perl configuration (perl -V) > in your response.
I've recompiled perl-forks 0.18 on my perl 5.8.7 and it still works the same. When "use forks" the system call return -1. Erwan,
Download perl-V
application/octet-stream 4.2k

Message body not shown because it is not plain text.

RT-Send-CC: liz [...] dijkmat.nl
This issue is caused by how the host system supports $SIG{CHLD} = 'IGNORE'. Many systems will trap the exit code of the child and return them to the parent perl process during auto-reaping, but some return -1. forks 0.19 includes a patch that directly addresses this issue and hopefully makes the system() call work again across all platforms on which forks module is used.