Skip to content

Commit

Permalink
change all SIGKILL to SIGTERM\
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Oct 11, 2022
1 parent 2e0616f commit f2906ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Queue/Stop.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

if (posix_kill(getQueueProcessId(), SIG_DFL)){
posix_kill(getQueueProcessId(), SIGKILL);
posix_kill(getQueueProcessId(), SIGTERM);
}

sleep(1);
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Scheduling/Stop.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

if (posix_kill(getSchedulingProcessId(), SIG_DFL)){
posix_kill(getSchedulingProcessId(), SIGKILL);
posix_kill(getSchedulingProcessId(), SIGTERM);
}

sleep(1);
Expand Down

0 comments on commit f2906ec

Please sign in to comment.