[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request: use counter for LUA_GCSTOP/LUA_GCRESTART
- From: Florian Weimer <fw@...>
- Date: Sun, 22 Nov 2009 12:31:45 +0100
* Phoenix Sol:
> Could you please elaborate on this a bit? I'm having difficulty
> understanding the problem. I'm building an application that uses
> nixio.fork() to create worker processes. I haven't noticed any problem
> using fork() yet.
You need to stop GC between fork and exec, otherwise data in file
handles might be flushed twice when they are closed by the __gc
meta-method. (This is just one example, other __gc meta-methods might
have similar side effects.)