Hacker News new | ask | show | jobs
by JayeshSidhwani 3458 days ago
you should read https://rachelbythebay.com/w/2014/08/19/fork/ to take care of https://github.com/SalmaanP/news_backend/blob/master/daemon....
1 comments

Woah! I did not know that about killing PID -1. That is not behaviour I'd expect.

This developer uses Python though, which seems like it does the correct thing in raising an error instead of just returning a -1. I'd have to look through the Python code to be sure through:

https://docs.python.org/3.5/library/os.html#os.fork