Skip to content

Commit 3860321

Browse files
author
ace411
committed
test: add checks for SIGINT
1 parent f4dd085 commit 3860321

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/008.phpt

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ $loop->addTimer(
2525
function () {
2626
var_dump('Tick');
2727

28-
\posix_kill(\posix_getpid(), SIGINT);
28+
\posix_kill(
29+
\posix_getpid(),
30+
(\defined('SIGINT') ? SIGINT : 2),
31+
);
2932
},
3033
);
3134

3235
$loop->addSignal(
33-
SIGINT,
36+
(\defined('SIGINT') ? SIGINT : 2),
3437
function () {
3538
echo "Terminated with SIGINT\n";
3639
},

0 commit comments

Comments
 (0)