On Wed, Apr 13, 2011 at 14:32, Fabio Mascarenhas <mascaren...@acm.org> wrote: > On Wed, Apr 13, 2011 at 3:32 AM, Alexander Gladysh <aglad...@gmail.com> wrote: >> Here is a link to yet another my ignored post from a year ago, that >> somewhat explains the problem with signals:
>> http://lists.luaforge.net/pipermail/kepler-project/2010-April/004158.html >> Maybe I just should try again? > In an ideal world all Lua I/O would be handled by the same scheduler, > so you could block on a read from the FCGI pipe and still receive > signals, or other events. But you can still use one of the thread > libraries (Lanes, or the one that Robert of this thread just released, > I am sure there are others) to spawn a thread that just waits and > responds on signals (lather, rinse, repeat for other kinds of events > that cannot wait). Um. Did you just suggest to reuse the same state from two threads? If not, then how would I release the log file? > Maybe the community will converge on the proper way to handle I/O and > events someday, then we can all rewrite our modules to support it. :-) > Even Mike has taken a stab at this several years ago: > http://lua-users.org/lists/lua-l/2004-06/msg00586.html > http://lua-users.org/files/wiki_insecure/users/MikePall/event.html > Perhaps he decided this was too hopeless a task, and that building a > JIT would be way easier. :-) Nevertheless, I believe that my question is legitimate and my use-case is not too-exotic. It should be supported by WSAPI somehow. Alexander. _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/