Use prctl() to have the kernel SIGTERM background processes on exit.

This uses a Linux-ism to attempt to always clean up background processes
if possible.  Note that it is not a catch-all, in that executables with
suid/sgid or elevated capabilities will have the prctl() attribute
stripped as part of the execve().

Resolves ticket 15471.
This commit is contained in:
Yawning Angel
2015-03-26 14:56:14 +00:00
parent 732322b710
commit fa81508eb2
2 changed files with 21 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor features (pluggable transports):
- When launching managed pluggable transports on linux systems,
attempt to have the kernel deliver a SIGTERM on tor exit if
the pluggable transport process is still running. Resolves
ticket 15471.