mirror of
https://github.com/curl/curl.git
synced 2026-08-05 14:06:14 +03:00
tests/server/util.[ch]: add exit event to stop waiting on Windows
This commit adds a global exit event to the test servers that Windows-specific wait routines can use to get triggered if the program was signaled to be terminated, eg. select_ws in sockfilt.c The exit event will be managed by the signal handling code and is set to not reset automatically to support multiple wait routines. Reviewed-by: Jay Satiro Closes #5260
This commit is contained in:
parent
551577f357
commit
7dc8a981fa
2 changed files with 24 additions and 0 deletions
|
|
@ -70,6 +70,11 @@ extern volatile int got_exit_signal;
|
|||
/* global variable which if set indicates the first signal handled */
|
||||
extern volatile int exit_signal;
|
||||
|
||||
#ifdef WIN32
|
||||
/* global event which if set indicates that the program should finish */
|
||||
extern HANDLE exit_event;
|
||||
#endif
|
||||
|
||||
void install_signal_handlers(bool keep_sigalrm);
|
||||
void restore_signal_handlers(bool keep_sigalrm);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue