3 ms·
For anyone else interested in the code, I believe these are the repos - Backend https://github.com/SalmaanP/news_backend https://github.com/SalmaanP/news_backe
by simonpure 10y ago
For anyone else interested in the code, I believe these are the repos -
Backend
https://github.com/SalmaanP/news_backend https://github.com/SalmaanP/news_backend
Frontend
https://github.com/SalmaanP/news_website https://github.com/SalmaanP/news_website
- JayeshSidhwani 10y agoyou should read https://rachelbythebay.com/w/2014/08/19/fork/ https://rachelbythebay.com/w/2014/08/19/fork/ to take care of https://github.com/SalmaanP/news_backend/blob/master/daemon.py#L25 https://github.com/SalmaanP/news_backend/blob/master/daemon....
- djsumdog 10y agoWoah! 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 https://docs.python.org/3.5/library/os.html#os.fork