daemon: do not fork on startup
This commit is contained in:
父節點
2ae2bb1f52
當前提交
77c21cef3a
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
|
@ -113,7 +113,7 @@
|
||||||
"Maybe another daemon is already running.\n");
|
"Maybe another daemon is already running.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pcntl_fork()) {
|
/* if (!pcntl_fork()) {
|
||||||
pcntl_signal(SIGINT, 'sigint_handler');
|
pcntl_signal(SIGINT, 'sigint_handler');
|
||||||
register_shutdown_function('shutdown');
|
register_shutdown_function('shutdown');
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true) { sleep(100); }
|
while (true) { sleep(100); }
|
||||||
}
|
} */
|
||||||
|
|
||||||
// Testing database connection.
|
// Testing database connection.
|
||||||
// It is unnecessary to start the fork loop if database is not ok.
|
// It is unnecessary to start the fork loop if database is not ok.
|
||||||
|
|
載入中…
Reference in a new issue