Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Hello71
on Oct 30, 2019
|
parent
|
context
|
favorite
| on:
Unfork()
isn't this more or less the same as
gdb -batch -n -ex 'call chdir("whatever")' -p $$
vidarh
on Oct 30, 2019
[–]
That does seem to be conceptually pretty much what it's doing. Except your version works on more architectures.
It's a simple example of ptrace() though.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: