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/test/test_util_slow.c | |
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/test/test_util_slow.c')
-rw-r--r-- | src/test/test_util_slow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_util_slow.c b/src/test/test_util_slow.c index a597ef3cbc..dcd0c9af36 100644 --- a/src/test/test_util_slow.c +++ b/src/test/test_util_slow.c @@ -107,9 +107,11 @@ run_util_spawn_background(const char *argv[], const char *expected_out, #ifdef _WIN32 tt_assert(process_handle->stdout_pipe != INVALID_HANDLE_VALUE); tt_assert(process_handle->stderr_pipe != INVALID_HANDLE_VALUE); + tt_assert(process_handle->stdin_pipe != INVALID_HANDLE_VALUE); #else tt_assert(process_handle->stdout_pipe >= 0); tt_assert(process_handle->stderr_pipe >= 0); + tt_assert(process_handle->stdin_pipe >= 0); #endif /* Check stdout */ |