Change process group in IPC worker
This commit is contained in:
parent
77c7d81e33
commit
8b2caed419
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user