makeプロセスまたはサブプロセスを使用してプロセスを再作成する方法はありますか?

makeプロセスまたはサブプロセスを使用してプロセスを再作成する方法はありますか?

以下を考慮してくださいMakefile

all:
    yes

makerunとPauseを使用してCtrl-Zからstartまたはscreenを使用しtmuxてtryを使用すると、reptyr次のエラーが発生します。

$ reptyr 5328
[-] Process 5329 (yes) shares 5328's process group. Unable to attach.
(This most commonly means that 5328 has suprocesses).
Unable to attach to pid 5328: Invalid argument

サブプロセスがあることは事実です。しかし、このツールや他のツールを使用する方法はmakeありますか?reptyr

ベストアンサー1

reptyrバージョン 0.6 では、子-Tプロセスがあるプロセスに適した「tty-stealing」モードオプションが導入されました。

バラよりhttps://blog.nelhage.com/2014/08/new-reptyr-feature-tty-stealing/詳細については。

おすすめ記事