nelhage / reptyr

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

reptyr only works on Linux #8

Closed Sec42 closed 13 years ago

Sec42 commented 13 years ago

I'm not sure what it would take to port it to *BSD, but it would be nice if it could be done.

nelhage commented 13 years ago

A port would be non-trivial; It depends pretty deeply on the details of the Linux kernel API, Linux's terminal handling ioctls, Linux system calls, and ptrace. I suspect there are appropriate analogs for all of the pieces on modern BSDs, but I don't know much about BSD, so I'm unlikely to invest the effort any time soon. I'm happy to cluedump someone else if they want to try it, though.