aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util_slow.c
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-03-26 12:55:12 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-03-26 12:55:12 +0000
commitfda61e030e12cbd66a2be9905e6855ec6c6a3c63 (patch)
treeb0b7f8188707e73e788b33181c796c73106998d3 /src/test/test_util_slow.c
parent732322b710d515a55ebbaa984fa12f19ccb333e8 (diff)
downloadtor-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.c2
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 */