]> git.mxchange.org Git - friendica.git/commitdiff
Update bin/daemon.php
authorMichael Vogel <icarus@dabo.de>
Tue, 5 Dec 2023 21:45:16 +0000 (22:45 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 21:45:16 +0000 (22:45 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
bin/daemon.php

index 1a604d71357da63c2969b597d6b43ca533143950..53a564b8bc15ff77099206ad0f56d166b934a610 100755 (executable)
@@ -163,8 +163,7 @@ if (!$foreground) {
                exit(1);
        } elseif ($pid) {
                // The parent process continues here
-               file_put_contents($pidfile, $pid);
-               if (!is_readable($pidfile)) {
+               if (!file_put_contents($pidfile, $pid)) {
                        echo "Pid file wasn't written.\n";
                        Logger::warning('Could not store pid file');
                        posix_kill($pid, SIGTERM);