lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

* 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.)