summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-20 16:14:42 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-20 16:14:42 -0400
commitb68b61c95192422d8a292b9bb02d68a294885ca9 (patch)
tree85c1762e3006c2dc9354457d3adfa0d51112fee6
parentConverted backend status to TINYINT; First try at logging non-execution messa... (diff)
downloadingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.tar.gz
ingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.tar.bz2
ingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.zip
Little backend output cleanup
-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');