#5297 defect reopened
twistd pidfile and UID/GID privileges
|Reported by:||tomsheffler||Owned by:|
When twistd starts as root, and is asked to drop privileges to UID/GID, it will manage the pidfile in the following way
- the pidfile will be created as root
- upon exit, the pidfile will be removed by a process with privileges of UID/GID
The current implementation places some unexpected on setting up the pidfile directory: it must be writable by UID/GID or the pidfile is not removed.
This behavior is mysterious and unexpected. At the least it should be documented.
See here for more details: http://www.tsheffler.com/blog/?p=526