1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 10:31:13 +01:00

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']);
}