- Process.wait. it is a blocking call: it will not return until a child process dies.
- Signal delivery is unreliable.
- your code is handling a CHLD signal while another child process dies you may or may not receive a second CHLD signal.
- signals are sent by the kernel
- Signals are sent from one process to another process, using the kernel as a middleman.
- trapping a signal is a bit like using a global variable
- global variables signal handlers can't be namespaced
- If you simply want to wire up some behaviour to clean up resources before exiting you can use an at_exit hook
Last active
December 16, 2015 17:49
-
-
Save ilake/5473320 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment