Skip to content

Commit b7a181f

Browse files
committed
allow SIGINT to still be registored for other uses.
1 parent 7eab8ec commit b7a181f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Spawn/Launcher.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ public static function add(
139139
}
140140

141141
if ($signal) {
142-
if ($signal === \SIGINT) {
143-
$launcher->status = 'timeout';
142+
if ($signal === \SIGINT && $launcher->status === 'timeout') {
144143
if (!Spawn::isBypass())
145144
$launcher->triggerTimeout($launcher->isYield);
146145
} else {

0 commit comments

Comments
 (0)