From b68b61c95192422d8a292b9bb02d68a294885ca9 Mon Sep 17 00:00:00 2001 From: Eudyptula Date: Mon, 20 Jul 2009 16:14:42 -0400 Subject: Little backend output cleanup --- backend/backend.php | 4 ++-- 1 file 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'); -- cgit v1.2.3-65-gdbad