Skip to content

Commit

Permalink
we do not expect a bailout to be something common
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Jul 22, 2024
1 parent f0fdf94 commit 5a9a24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ PHP_RSHUTDOWN_FUNCTION(PARALLEL_CORE)
// In case of a `zend_bailout()` this mutex could still be locked, so we
// unlock it just in case.
// See https://github.com/krakjoe/parallel/issues/313 for more details
if (CG(unclean_shutdown) == 1) {
if (UNEXPECTED(CG(unclean_shutdown) == 1)) {
pthread_mutex_unlock(&php_parallel_output_mutex);
}

Expand Down

0 comments on commit 5a9a24f

Please # to comment.