diff --git a/src/danog/MadelineProto/Ipc/Runner/entry.php b/src/danog/MadelineProto/Ipc/Runner/entry.php index adcc7772..5e760dba 100644 --- a/src/danog/MadelineProto/Ipc/Runner/entry.php +++ b/src/danog/MadelineProto/Ipc/Runner/entry.php @@ -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']); }