We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f69cac3 commit f7f7459Copy full SHA for f7f7459
src/Controller/Admin/QueueProcessesController.php
@@ -112,7 +112,7 @@ public function delete(?int $id = null, ?int $sig = null) {
112
$queueProcess = $this->QueueProcesses->get($id);
113
114
if (!Configure::read('Queue.multiserver')) {
115
- $this->QueueProcesses->terminateProcess($queueProcess->pid, $sig ?: SIGTERM);
+ $this->QueueProcesses->terminateProcess($queueProcess->pid, $sig ?: \SIGTERM);
116
}
117
118
if ($this->QueueProcesses->delete($queueProcess)) {
src/Queue/Processor.php
@@ -123,16 +123,16 @@ public function run(array $args): int {
123
gc_enable();
124
125
if (function_exists('pcntl_signal')) {
126
- pcntl_signal(SIGTERM, [&$this, 'exit']);
127
- pcntl_signal(SIGINT, [&$this, 'abort']);
128
- pcntl_signal(SIGTSTP, [&$this, 'abort']);
129
- pcntl_signal(SIGQUIT, [&$this, 'abort']);
+ pcntl_signal(\SIGTERM, [&$this, 'exit']);
+ pcntl_signal(\SIGINT, [&$this, 'abort']);
+ pcntl_signal(\SIGTSTP, [&$this, 'abort']);
+ pcntl_signal(\SIGQUIT, [&$this, 'abort']);
130
if (Configure::read('Queue.canInterruptSleep')) {
131
// Defining a signal handler here will make the worker wake up
132
// from its sleep() when SIGUSR1 is received. Since waking it
133
// up is all we need, there is no further code to execute,
134
// hence the empty function.
135
- pcntl_signal(SIGUSR1, function (): void {
+ pcntl_signal(\SIGUSR1, function (): void {
136
});
137
138
0 commit comments