aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2018-11-01 10:56:13 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2018-11-01 09:58:26 +0000
commitbbaf495162293d65e97addaf7a4480d49aff30bf (patch)
tree8f723ba1d5338db6c3df8ae79941ee33ccd246bc /wsutil
parent98e4aedfcd8f05fc8d2cf990e8a9b9ec71a8bf52 (diff)
ws_pipe_close(): also close the handle after terminating process
Change-Id: Ie19eba9706e2af1a58a6946e8af68ab90c0c8a7d Reviewed-on: https://code.wireshark.org/review/30456 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/ws_pipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c
index 149d3a4a56..68c35f5e82 100644
--- a/wsutil/ws_pipe.c
+++ b/wsutil/ws_pipe.c
@@ -335,9 +335,8 @@ void ws_pipe_close(ws_pipe_t * ws_pipe)
if (ws_pipe->pid != WS_INVALID_PID) {
#ifdef _WIN32
TerminateProcess(ws_pipe->pid, 0);
-#else
- g_spawn_close_pid(ws_pipe->pid);
#endif
+ g_spawn_close_pid(ws_pipe->pid);
ws_pipe->pid = WS_INVALID_PID;
}
}