mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Addresses warning that posix_kill takes long not string
This commit is contained in:
parent
2ae54583f0
commit
59e7b83892
@ -59,7 +59,7 @@ function killRedis($pid)
|
|||||||
|
|
||||||
$pidFile = TEST_MISC . '/' . $matches[1];
|
$pidFile = TEST_MISC . '/' . $matches[1];
|
||||||
$pid = trim(file_get_contents($pidFile));
|
$pid = trim(file_get_contents($pidFile));
|
||||||
posix_kill($pid, 9);
|
posix_kill((int) $pid, 9);
|
||||||
|
|
||||||
if(is_file($pidFile)) {
|
if(is_file($pidFile)) {
|
||||||
unlink($pidFile);
|
unlink($pidFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user