Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 820a0a6

Browse files
committed
Merge branch 'master' into pgpro-2065
2 parents 702d13e + fb4c3ff commit 820a0a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/logger.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ exit_if_necessary(int elevel)
134134
/* If this is not the main thread then don't call exit() */
135135
if (main_tid != pthread_self())
136136
{
137+
/* Interrupt other possible routines */
138+
thread_interrupted = true;
137139
#ifdef WIN32
138140
ExitThread(elevel);
139141
#else
140142
pthread_exit(NULL);
141143
#endif
142-
/* Interrupt other possible routines */
143-
thread_interrupted = true;
144144
}
145145
else
146146
exit(elevel);

0 commit comments

Comments
 (0)