mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-13 11:53:59 +02:00
Merge branch 'master' into pgpro-2065
This commit is contained in:
commit
820a0a63a6
@ -134,13 +134,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