aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/win32-utils.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2019-04-25 17:17:36 +0200
committerGerald Combs <gerald@wireshark.org>2019-04-25 16:03:53 +0000
commit66f829bc1803df0f4518a98a57a604a05beee6f6 (patch)
treed1a363cf751c3e2d443fc6422e2abbf9ce7016fe /wsutil/win32-utils.c
parent504da93d16784500de996f3b2489b188d0d4eeeb (diff)
win32-utils: Do not share job between Wireshark instances
Creating Job Object named "Local\Wireshark child process cleanup" results in the job being shared between all Wireshark instances run within a single session. When two or more Wireshark instances were running, debug message appeared: "Could not assign child cleanup process: Access is denied. (5)" As the child process was not assigned to a job, it was possible that the child process was still active even after Wireshark did terminate. This fixes the issue by creating unnamed job object which is not shared. Change-Id: I59adc2aacff0151802163f155d68cbc8022c1479 Reviewed-on: https://code.wireshark.org/review/32985 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'wsutil/win32-utils.c')
-rw-r--r--wsutil/win32-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/win32-utils.c b/wsutil/win32-utils.c
index 3850868e80..d9f352d9a8 100644
--- a/wsutil/win32-utils.c
+++ b/wsutil/win32-utils.c
@@ -196,7 +196,7 @@ win32strexception(DWORD exception)
static void win32_kill_child_on_exit(HANDLE child_handle) {
static HANDLE cjo_handle = NULL;
if (!cjo_handle) {
- cjo_handle = CreateJobObject(NULL, _T("Local\\Wireshark child process cleanup"));
+ cjo_handle = CreateJobObject(NULL, NULL);
if (!cjo_handle) {
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "Could not create child cleanup job object: %s",