diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2015-03-26 12:55:12 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2015-03-26 12:55:12 +0000 |
commit | fda61e030e12cbd66a2be9905e6855ec6c6a3c63 (patch) | |
tree | b0b7f8188707e73e788b33181c796c73106998d3 /src/common/util.h | |
parent | 732322b710d515a55ebbaa984fa12f19ccb333e8 (diff) | |
download | tor-fda61e030e12cbd66a2be9905e6855ec6c6a3c63.tar.gz tor-fda61e030e12cbd66a2be9905e6855ec6c6a3c63.zip |
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.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 3584a879bb..21ac5b31e2 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -474,12 +474,15 @@ struct process_handle_t { /** One of the PROCESS_STATUS_* values */ int status; #ifdef _WIN32 + HANDLE stdin_pipe; HANDLE stdout_pipe; HANDLE stderr_pipe; PROCESS_INFORMATION pid; #else + int stdin_pipe; int stdout_pipe; int stderr_pipe; + FILE *stdin_handle; FILE *stdout_handle; FILE *stderr_handle; pid_t pid; |