关闭 ide 生成的 shell 后保持进程运行

关闭 ide 生成的 shell 后保持进程运行

这与涉及保持流程开放的其他问题类似,但有所不同。包含所需进程的 ssh shell 是由 ide 生成的,而不是由我在交互式 shell 中生成的。

我尝试使用reptyr将进程分配给我当前的shell,但失败了:

[-] Process 123 (bash) shares 456's process group. Unable to attach.
(This most commonly means that 456 has suprocesses).
Unable to attach to pid 456: Invalid argument

我将如何保持这个过程的运行?

相关内容