Open agentzh opened 6 months ago
BTW, I use bpftime attach PID
in this case.
There should be a way for syscall server to notify all agents that it's alive. This may be implemented by writing a timestamp into shared memory each second. Once this timestamp hasn't been updated for a period of seconds, agent should regard syscall server dead, and start to detach
Agent and the server side should have a seperate thread to check this.
I'll take this issue
Currently, when I hit Ctrl-C to quit
bpftime load
, it only destructs the global shm without cleaning up the target process's injected code and data:And the target process then goes crazy and emits a lot of errors like these:
Obviously, the injected code and data are still there.
Furthermore, if the
bpftime load
and its child process are killed abruptly withSIGKILL
, we still need a way to clean things up manually. Maybe like something likebpftime detach PID
suggested in #166 ?