Skip to content

Commit db875da

Browse files
authored
add sigint to queue:work (laravel#56458)
1 parent 673477f commit db875da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Queue/Worker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ protected function listenForSignals()
741741

742742
pcntl_signal(SIGQUIT, fn () => $this->shouldQuit = true);
743743
pcntl_signal(SIGTERM, fn () => $this->shouldQuit = true);
744+
pcntl_signal(SIGINT, fn () => $this->shouldQuit = true);
744745
pcntl_signal(SIGUSR2, fn () => $this->paused = true);
745746
pcntl_signal(SIGCONT, fn () => $this->paused = false);
746747
}

0 commit comments

Comments
 (0)