File tree 3 files changed +12
-18
lines changed
3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,10 @@ protected function tearDown(): void
71
71
72
72
if (\function_exists ('pcntl_signal ' )) {
73
73
// We reset all signals to their default value to avoid side effects
74
- for ($ i = 1 ; $ i <= 15 ; ++$ i ) {
75
- if (9 === $ i ) {
76
- continue ;
77
- }
78
- pcntl_signal ($ i , \SIG_DFL );
79
- }
74
+ pcntl_signal (\SIGINT , \SIG_DFL );
75
+ pcntl_signal (\SIGTERM , \SIG_DFL );
76
+ pcntl_signal (\SIGUSR1 , \SIG_DFL );
77
+ pcntl_signal (\SIGUSR2 , \SIG_DFL );
80
78
}
81
79
}
82
80
Original file line number Diff line number Diff line change @@ -35,12 +35,10 @@ protected function tearDown(): void
35
35
if (\function_exists ('pcntl_signal ' )) {
36
36
pcntl_async_signals (false );
37
37
// We reset all signals to their default value to avoid side effects
38
- for ($ i = 1 ; $ i <= 15 ; ++$ i ) {
39
- if (9 === $ i ) {
40
- continue ;
41
- }
42
- pcntl_signal ($ i , \SIG_DFL );
43
- }
38
+ pcntl_signal (\SIGINT , \SIG_DFL );
39
+ pcntl_signal (\SIGTERM , \SIG_DFL );
40
+ pcntl_signal (\SIGUSR1 , \SIG_DFL );
41
+ pcntl_signal (\SIGUSR2 , \SIG_DFL );
44
42
}
45
43
}
46
44
Original file line number Diff line number Diff line change @@ -23,12 +23,10 @@ protected function tearDown(): void
23
23
{
24
24
pcntl_async_signals (false );
25
25
// We reset all signals to their default value to avoid side effects
26
- for ($ i = 1 ; $ i <= 15 ; ++$ i ) {
27
- if (9 === $ i ) {
28
- continue ;
29
- }
30
- pcntl_signal ($ i , \SIG_DFL );
31
- }
26
+ pcntl_signal (\SIGINT , \SIG_DFL );
27
+ pcntl_signal (\SIGTERM , \SIG_DFL );
28
+ pcntl_signal (\SIGUSR1 , \SIG_DFL );
29
+ pcntl_signal (\SIGUSR2 , \SIG_DFL );
32
30
}
33
31
34
32
public function testOneCallbackForASignalSignalIsHandled ()
You can’t perform that action at this time.
0 commit comments