Skip to content

Commit

Permalink
suppress php warning, when trying to open the existing lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
timar committed Feb 5, 2021
1 parent a2c1184 commit 0c753f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function startLoolwsd()
$launchCmd = "bash -c \"( $appImage || $appImage --appimage-extract-and-run ) >/dev/null & disown\"";

// Prevent second start
$lock = fopen("/tmp/loolwsd.lock", "x");
$lock = @fopen("/tmp/loolwsd.lock", "x");
if ($lock)
{
// We start a new server, we don't need stale pidfile around
Expand Down

0 comments on commit 0c753f0

Please sign in to comment.