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/자세한 내용은.

관련 정보