Hello again! May I ask you to submit a Pull Request on github instead of the attachment to email?
On Sat, Feb 22, 2014 at 12:53 AM, booch <[email protected]> wrote: > Hey Fedor, > > I've given it a shot, but keep bumping into issues. Right now this diff > mostly does it, but since kqueues aren't inherited to the child process the > default_loop and any other loop is still left in an invalid state and the > child always exits at an abort from a kevent error. I haven't tried, but > this may work on linux and epoll though. > > One way would be to register loops from loop new to re-initialize their > kqueue, but I think that's getting to diminishing returns as one really > shouldn't be forking without an exec from threaded apps. > > Here's the diff if you're interested, or have some ideas. > > Thanks, > MY > > > On Monday, February 10, 2014 1:51:20 PM UTC-7, booch wrote: >> >> Hi all, >> >> I'm wondering if anyone knows an easy way around an issue I'm seeing. >> >> I have some code using libuv for its threadpool.c feature. Unfortunately >> this code forks. When the child exits we run the destructor code >> theadpool.c:cleanup...since the child inherited most of the parent it has an >> allocated threads array, and initialized == 1, but since it's a fork it has >> no other started threads. With no other threads the uv_thread_join fails and >> the library aborts when unloading. >> >> Has anyone ran into this before and found a workaround? Is there a >> notify_of_fork method that I'm missing? >> >> Thanks, >> MY > > -- > You received this message because you are subscribed to the Google Groups > "libuv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/libuv. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/groups/opt_out.
