Change process group in IPC worker

This commit is contained in:
Daniil Gentili 2020-10-17 01:23:52 +02:00
parent 77c7d81e33
commit 8b2caed419

View File

@ -85,6 +85,9 @@ use danog\MadelineProto\Tools;
if (\function_exists('cli_set_process_title')) {
@\cli_set_process_title("MadelineProto worker $ipcPath");
}
if (\function_exists('posix_setsid')) {
@\posix_setsid();
}
if (isset($_GET['cwd'])) {
@\chdir($_GET['cwd']);
}