Addresses warning that posix_kill takes long not string

This commit is contained in:
David Abdemoulaie 2010-12-14 23:55:33 -06:00
parent 2ae54583f0
commit 59e7b83892

View File

@ -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);