aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-04-18 21:42:05 +0200
committerMarc Hoersken <info@marc-hoersken.de>2020-05-02 17:04:55 +0200
commitfe28fcf04cdfe7c6e1ab4499a33f9b8479839f14 (patch)
tree08cf8d2bfd510f6655ae7d8aabd25bcea03b173e /tests
parent1abb087a9c8f1e613b0b38b7afeffb61c18c2fed (diff)
tests/server/util.c: use raise instead of calling signal handler
Use raise to trigger signal handler instead of calling it directly and causing potential unexpected control flow. Reviewed-by: Jay Satiro Part of #5260
Diffstat (limited to 'tests')
-rw-r--r--tests/server/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index 09bb515b4..99aa1de40 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -632,7 +632,7 @@ static BOOL WINAPI ctrl_event_handler(DWORD dwCtrlType)
}
if(signum) {
logmsg("ctrl_event_handler: %d -> %d", dwCtrlType, signum);
- exit_signal_handler(signum);
+ raise(signum);
}
return TRUE;
}
@@ -656,7 +656,7 @@ static LRESULT CALLBACK main_window_proc(HWND hwnd, UINT uMsg,
}
if(signum) {
logmsg("main_window_proc: %d -> %d", uMsg, signum);
- exit_signal_handler(signum);
+ raise(signum);
}
}
return DefWindowProc(hwnd, uMsg, wParam, lParam);