From 8b2caed41912332c597c490785e6fef462d60632 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 17 Oct 2020 01:23:52 +0200 Subject: [PATCH] Change process group in IPC worker --- src/danog/MadelineProto/Ipc/Runner/entry.php | 3 +++ 1 file changed, 3 insertions(+) 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']); }