Skip Menu |

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

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

People
Owner: TODDR [...] cpan.org
Requestors: GAAS [...] cpan.org
Cc:
AdminCc:

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



Subject: POSIX::exit is the same as builtin exit
I see code like this in IPC::Run: ## Use POSIX::exit to avoid global destruction, since this might ## cause DESTROY() to be called on objects created in the parent ## and thus cause double cleanup. For instance, if DESTROY() unlinks ## a file in the child, we don't want the parent to suddenly miss ## it. POSIX::exit 0; there is also documentation talking about POSIX::exit[1]. In fact POSIX::exit() just calls the normal perl builtin function exit(). The function you want to call to avoid destructors is POSIX::_exit(). [1] http://search.cpan.org/grep?cpanid=ADAMK&release=IPC-Run- 0.82&string=POSIX%3A%3Aexit&i=1&n=1&C=0
I'm helping with the maintenance of this module. I'd feel better if we could put a test in place for this any ideas?
Ticket migrated to github as https://github.com/toddr/IPC-Run/issues/78