Skip to content
Advertisement

Tag: python-daemon

Python’s daemon PPID not equal to 1

Creating daemons in Linux is quite complex issue, but it’s very well documented in daemon(7) manual. Thankfully there is python-daemon module for Python 2 and 3 that implement PEP3143, so I’m using it. Here comes the question: when I was playing with python-daemon module I was surprised that daemon’s PPID is not 1. Why? Simple example: Content of test.log after

Advertisement