summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'backend/backend.php')
-rwxr-xr-xbackend/backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/backend.php b/backend/backend.php
index 0750d49..6bf0bd7 100755
--- a/backend/backend.php
+++ b/backend/backend.php
@@ -40,8 +40,8 @@ if (is_file($pidfile)) {
die("Found already running backend PID=$pid.\n");
}
if (posix_geteuid() !== 0)
- fputs(STDERR, "Not running as root... this is not going to accomplish much.");
-if (file_put_contents($pidfile, posix_getpid()))
+ fputs(STDERR, "Not running as root... this is not going to accomplish much.\n");
+if (@file_put_contents($pidfile, posix_getpid()))
$unlinkpidfile=true;
require_once(dirname(__FILE__).'/../shared/include/includes.php'); // USE __DIR__ once 5.3.0 is out (and 2 lines down)
require_once(BACKEND.'/include/signals.php');