Skip to content

Commit 3043a31

Browse files
committed
do not report that loolwsd is running, when the getLoolwsdPid() function returns 0
1 parent 249ec7b commit 3043a31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proxy.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ function getLoolwsdPid()
5959

6060
function isLoolwsdRunning()
6161
{
62-
return posix_kill(getLoolwsdPid(),0);
62+
$pid = getLoolwsdPid();
63+
if ($pid == 0)
64+
return 0;
65+
66+
return posix_kill($pid,0);
6367
}
6468

6569
function startLoolwsd()

0 commit comments

Comments
 (0)