mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 01:35:14 +00:00
only remove pid file during tests if exists
This commit is contained in:
parent
998b46887a
commit
e54c7ca99a
@ -59,11 +59,13 @@ function killRedis($pid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$pidFile = TEST_MISC . '/' . $matches[1];
|
$pidFile = TEST_MISC . '/' . $matches[1];
|
||||||
$pid = trim(file_get_contents($pidFile));
|
if (file_exists($pidFile)) {
|
||||||
posix_kill((int) $pid, 9);
|
$pid = trim(file_get_contents($pidFile));
|
||||||
|
posix_kill((int) $pid, 9);
|
||||||
|
|
||||||
if(is_file($pidFile)) {
|
if(is_file($pidFile)) {
|
||||||
unlink($pidFile);
|
unlink($pidFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the redis database
|
// Remove the redis database
|
||||||
|
Loading…
Reference in New Issue
Block a user