Skip to content

Commit bcdf0b0

Browse files
committed
Fixed disown problems on pty
1 parent 2030979 commit bcdf0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RemoteTask/Task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function run()
7272
);
7373
}
7474
$status = (bool) $this->command(
75-
"bash -c '(echo @{:command} | base64 -d | bash) > @{:logFile} 2>&1 & disown && echo 1 || echo 0'",
75+
"nohup bash -c '(echo @{:command} | base64 -d | bash) > @{:logFile} 2>&1 & disown' 2>/dev/null 1>/dev/null && echo 1 || echo 0",
7676
[
7777
'command' => base64_encode($command),
7878
'logFile' => $this->logFile

0 commit comments

Comments
 (0)