Skip to content

Commit

Permalink
fix bailout address errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Nov 21, 2024
1 parent 0bb86cd commit bc78680
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/prepare.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,12 +947,14 @@ int pmmpthread_prepared_startup(pmmpthread_object_t* thread, pmmpthread_monitor_

//TODO: we probably should put this code inside routine instead of prepare
if (autoload_file != NULL) {
if (pmmpthread_thread_bootstrap(autoload_file) == FAILURE) {
//by this point the ready monitor has probably already been destroyed
//the main thread doesn't wait for user code to start running
pmmpthread_monitor_add(&thread->monitor, PMMPTHREAD_MONITOR_ERROR);
result = FAILURE;
}
zend_first_try{
if (pmmpthread_thread_bootstrap(autoload_file) == FAILURE) {
//by this point the ready monitor has probably already been destroyed
//the main thread doesn't wait for user code to start running
pmmpthread_monitor_add(&thread->monitor, PMMPTHREAD_MONITOR_ERROR);
result = FAILURE;
}
} zend_end_try();
zend_string_release(autoload_file);
}
return result;
Expand Down

0 comments on commit bc78680

Please sign in to comment.