diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-04-18 21:51:19 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-05-02 17:29:52 +0200 |
commit | 7dc8a981fa043b9dbbae3a632229b74dcd868bd7 (patch) | |
tree | acf333824555ebf489068faf8f21b6a06df467bc /tests/server/util.h | |
parent | 551577f35791be6b9423e8f606383bc1b8394c46 (diff) | |
download | curl-7dc8a981fa043b9dbbae3a632229b74dcd868bd7.tar.gz |
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
Diffstat (limited to 'tests/server/util.h')
-rw-r--r-- | tests/server/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/server/util.h b/tests/server/util.h index 73f5f45f6..b64c1d5a7 100644 --- a/tests/server/util.h +++ b/tests/server/util.h @@ -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); |