nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.77k stars 216 forks source link

Return value of attached command #100

Open jounathaen opened 5 years ago

jounathaen commented 5 years ago

Hi,

I looks to me, as if the return value of the process which reptyr attaches to cannot be retrieved. Is there some technical limitation, is it not implemented or am I not using it correctly?

Greets! Jonathan

nelhage commented 5 years ago

It is not currently implemented, and would be somewhat challenging to implement and would require some tradeoffs -- you would have to stay attached with ptrace in order to wait on the child and capture the exit status, which had some ongoing behavior implications. I doubt I'm likely to get to this soon if ever.