Skip Menu |

This queue is for tickets about the Proc-Background CPAN distribution.

Report information
The Basics
Id: 43553
Status: resolved
Priority: 0/
Queue: Proc-Background

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.20



Subject: parent process exit status vs die_upon_destroy
Date: Tue, 24 Feb 2009 09:12:51 +1100
To: bug-Proc-Background [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
With the debian packaged Proc::Background 1.08 and perl 5.10.0, the program foo.pl below run as perl foo.pl; echo $? gives an exit code of 1, where I hoped it would be 0 per the "exit 0". I think most of the time it'd be a good thing if a Proc::Background object destroy left the mainline's exit code in $? unchanged. The only concern would be whether anyone doing a die_upon_destroy in the middle of a program did in fact want to see its status in "$?". Though I'd imagine if you want that you'd be doing ->die then ->wait, or whatever, to get it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

This is fixed in 1.20, using your 'local' solution.