File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1355,7 +1355,7 @@ static void pcntl_signal_handler(int signo)
1355
1355
PCNTL_G (head ) = psig ;
1356
1356
}
1357
1357
PCNTL_G (tail ) = psig ;
1358
- PCNTL_G (pending_signals ) = 1 ;
1358
+ PCNTL_G (pending_signals ) = true ;
1359
1359
if (PCNTL_G (async_signals )) {
1360
1360
zend_atomic_bool_store_ex (& EG (vm_interrupt ), true);
1361
1361
}
@@ -1386,7 +1386,7 @@ void pcntl_signal_dispatch(void)
1386
1386
zend_fiber_switch_block ();
1387
1387
1388
1388
/* Prevent reentrant handler calls */
1389
- PCNTL_G (processing_signal_queue ) = 1 ;
1389
+ PCNTL_G (processing_signal_queue ) = true ;
1390
1390
1391
1391
queue = PCNTL_G (head );
1392
1392
PCNTL_G (head ) = NULL ; /* simple stores are atomic */
@@ -1418,10 +1418,10 @@ void pcntl_signal_dispatch(void)
1418
1418
queue = next ;
1419
1419
}
1420
1420
1421
- PCNTL_G (pending_signals ) = 0 ;
1421
+ PCNTL_G (pending_signals ) = false ;
1422
1422
1423
1423
/* Re-enable queue */
1424
- PCNTL_G (processing_signal_queue ) = 0 ;
1424
+ PCNTL_G (processing_signal_queue ) = false ;
1425
1425
1426
1426
/* Re-enable fiber switching */
1427
1427
zend_fiber_switch_unblock ();
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ struct php_pcntl_pending_signal {
43
43
44
44
ZEND_BEGIN_MODULE_GLOBALS (pcntl )
45
45
HashTable php_signal_table ;
46
- int processing_signal_queue ;
46
+ bool processing_signal_queue ;
47
47
struct php_pcntl_pending_signal * head , * tail , * spares ;
48
48
int last_error ;
49
- volatile char pending_signals ;
49
+ volatile bool pending_signals ;
50
50
bool async_signals ;
51
51
unsigned num_signals ;
52
52
ZEND_END_MODULE_GLOBALS (pcntl )
You can’t perform that action at this time.
0 commit comments