[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Small question about os.exit and __gc
- From: Tim Hill <drtimhill@...>
- Date: Fri, 14 Mar 2014 12:49:07 -0700
On Mar 14, 2014, at 6:39 AM, Coroutines <coroutines@gmail.com> wrote:
>
> Responding to your reply and Luiz':
>
> - I could wrap os.exit() but the wrapper would only be assigned over
> the original os.exit() potentially after libraries that reference the
> original os.exit() have been require'd in. That said I do agree with
> the default-no-cleanup, 2nd parameter to os.exit().
> - Other things to consider that might get left around after process
> cleanup/exit would be things like shared memory segments.
>
> Okay I'm done, was just interested in this post :-)
>
I’m not entirely sure I would ever trust using ANY library that called os.exit() underneath me without warning.
—Tim