<?php \umask(0); $pid = \pcntl_fork(); if (-1 === $pid) { throw new Exception('Fork fail'); } elseif ($pid > 0) { exit(0); } if (-1 === \posix_setsid()) { ...