Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSIX::exit is the same as builtin exit [rt.cpan.org #42885] #78

Closed
toddr opened this issue May 12, 2017 · 2 comments
Closed

POSIX::exit is the same as builtin exit [rt.cpan.org #42885] #78

toddr opened this issue May 12, 2017 · 2 comments
Labels
Bug Break in existing functionality. Dupe

Comments

@toddr
Copy link
Member

toddr commented May 12, 2017

Migrated from rt.cpan.org#42885 (status was 'open')

Requestors:

From gaas@cpan.org on 2009-01-29 12:25:00:

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

From toddr@cpan.org on 2010-03-23 04:43:38:

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?
@toddr toddr added Bug Break in existing functionality. Dupe labels Mar 26, 2018
@toddr
Copy link
Member Author

toddr commented Mar 26, 2018

@gisle for starters, I think you're right.

This looks to be what #86 is trying to address via Pull Request #102. I'm going to treat this ticket as a dupe for now. until I can sort out why #86 is failing.

@toddr toddr closed this as completed Mar 26, 2018
@toddr
Copy link
Member Author

toddr commented Mar 27, 2018

Actually fixed via #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Break in existing functionality. Dupe
Projects
None yet
Development

No branches or pull requests

1 participant