mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-12 11:45:24 +02:00
bugix: fix thread inturruption detection
This commit is contained in:
parent
f0de44e0fa
commit
fb4c3ffdc0
@ -130,13 +130,13 @@ exit_if_necessary(int elevel)
|
||||
/* If this is not the main thread then don't call exit() */
|
||||
if (main_tid != pthread_self())
|
||||
{
|
||||
/* Interrupt other possible routines */
|
||||
thread_interrupted = true;
|
||||
#ifdef WIN32
|
||||
ExitThread(elevel);
|
||||
#else
|
||||
pthread_exit(NULL);
|
||||
#endif
|
||||
/* Interrupt other possible routines */
|
||||
thread_interrupted = true;
|
||||
}
|
||||
else
|
||||
exit(elevel);
|
||||
|
Loading…
Reference in New Issue
Block a user