diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-11-28 18:12:30 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:39:28 -0500 |
commit | 22cb3c6ce9164920ff81013d5f8dce3c26911af4 (patch) | |
tree | 7959598dea4a1e50f64a40082f0820071b9d063e /src/lib/process/process_win32.c | |
parent | bc6983afed24c0b83a49d2cef531dcc036245a04 (diff) | |
download | tor-22cb3c6ce9164920ff81013d5f8dce3c26911af4.tar.gz tor-22cb3c6ce9164920ff81013d5f8dce3c26911af4.zip |
Call close() on stdin/stdout/stderr in process_terminate().
Call close() on all process handles after we have called kill(pid,
SIGTERM).
See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/lib/process/process_win32.c')
-rw-r--r-- | src/lib/process/process_win32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/process/process_win32.c b/src/lib/process/process_win32.c index 73e19d518f..e75328f3e8 100644 --- a/src/lib/process/process_win32.c +++ b/src/lib/process/process_win32.c @@ -293,6 +293,11 @@ process_win32_terminate(process_t *process) return false; } + /* Cleanup our handles. */ + process_win32_cleanup_handle(&win32_process->stdin_handle); + process_win32_cleanup_handle(&win32_process->stdout_handle); + process_win32_cleanup_handle(&win32_process->stderr_handle); + return true; } |