daemon: do not fork on startup
This commit is contained in:
orang tua
2ae2bb1f52
melakukan
77c21cef3a
1 mengubah file dengan 2 tambahan dan 2 penghapusan
|
@ -113,7 +113,7 @@
|
|||
"Maybe another daemon is already running.\n");
|
||||
}
|
||||
|
||||
if (!pcntl_fork()) {
|
||||
/* if (!pcntl_fork()) {
|
||||
pcntl_signal(SIGINT, 'sigint_handler');
|
||||
register_shutdown_function('shutdown');
|
||||
|
||||
|
@ -126,7 +126,7 @@
|
|||
}
|
||||
|
||||
while (true) { sleep(100); }
|
||||
}
|
||||
} */
|
||||
|
||||
// Testing database connection.
|
||||
// It is unnecessary to start the fork loop if database is not ok.
|
||||
|
|
Memuat…
Reference in a new issue