3 Matching Annotations
- Sep 2024
-
-
There is the handy rails server -d that starts a development Rails as a daemon. The annoying thing is that the scheduler as seen above is started in the main process that then gets forked and daemonized. The rufus-scheduler thread (and any other thread) gets lost, no scheduling happens.
-
-
stackoverflow.com stackoverflow.com
-
But fork does not copy the parent process's threads. Thus locks (in memory) that in the parent process were held by other threads are stuck in the child without owning threads to unlock them, ready to cause a deadlock when code tries to acquire any of them. Also any native library with forked threads will be in a broken state.
-
-
pythonspeed.com pythonspeed.com
-
In particular, one thing that fork() doesn’t copy is threads. Any threads running in the parent process do not exist in the child process.
-