Re: [capnproto] Accept connection in new process

2021-05-06 Thread 'Kenton Varda' via Cap'n Proto
Hi Pepijn, Yeah, forking won't work well. I don't recommend that. One problem is that if you fork() with an event loop running, both the parent and child processes will end up with the same epoll FD and so will receive each other's events, which will likely lead to chaos. So I recommend spawning

[capnproto] Accept connection in new process

2021-05-06 Thread pepij...@gmail.com
Hey, I'm writing an API for some shared libraries that are written with a "binary" use in mind. They use a ton of global state and are not thread safe. Of course as a server, multiple users could try to use the server at the same time, these libraries can't deal with that. What's more they also