nelhage / reptyr

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

test: modify a bit for other-platform/python compatibility #112

Closed kevans91 closed 4 years ago

kevans91 commented 4 years ago

My local master branch contains cirrus configs that tested both python2 and python3 compatibility on Linux -- neither work on FreeBSD still due to issues with the victim running under pexpect that I'm working over, but all tests passed on both versions with these relatively minor changes.

prctl-type manipulation isn't needed on FreeBSD, as we don't have any facility that will restrict PT_ATTACH beyond a bunch of bits that we wouldn't be able to affect anyways as the debugger.

nelhage commented 4 years ago

Great!