public static function toBackground() { if (0 > \posix_setsid()) { throw new Exception('fail to set sid'); } }