Implement "TOR_PT_EXIT_ON_STDIN_CLOSE".
commitfda61e030e12cbd66a2be9905e6855ec6c6a3c63
authorYawning Angel <yawning@schwanenlied.me>
Thu, 26 Mar 2015 12:55:12 +0000 (26 12:55 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Thu, 26 Mar 2015 12:55:12 +0000 (26 12:55 +0000)
treeb0b7f8188707e73e788b33181c796c73106998d3
parent732322b710d515a55ebbaa984fa12f19ccb333e8
Implement "TOR_PT_EXIT_ON_STDIN_CLOSE".

Background processes spawned by Tor now will have a valid stdin.
Pluggable transports can detect this behavior with the aformentioned
enviornment variable, and exit if stdin ever gets closed.
changes/feature15435 [new file with mode: 0644]
src/common/util.c
src/common/util.h
src/or/transports.c
src/test/test_util_slow.c