Skip to content

Commit 5a9a24f

Browse files
we do not expect a bailout to be something common
1 parent f0fdf94 commit 5a9a24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parallel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ PHP_RSHUTDOWN_FUNCTION(PARALLEL_CORE)
235235
// In case of a `zend_bailout()` this mutex could still be locked, so we
236236
// unlock it just in case.
237237
// See https://github.com/krakjoe/parallel/issues/313 for more details
238-
if (CG(unclean_shutdown) == 1) {
238+
if (UNEXPECTED(CG(unclean_shutdown) == 1)) {
239239
pthread_mutex_unlock(&php_parallel_output_mutex);
240240
}
241241

0 commit comments

Comments
 (0)