Currently tools like opensnoop just hang when you try to CTRL+C. The reason is perf_reader_poll doesn't see the interruption since its running remotely.
After the ^C, the Delete command is sent, but its not processed because BPFd is sleeping on the perf poll. Fix should be to poll STDIN as well, for any activity, and if so process an interruption within BPFd.
Currently tools like
opensnoop
just hang when you try to CTRL+C. The reason is perf_reader_poll doesn't see the interruption since its running remotely.Remote side debugging shows this:
After the
^C
, the Delete command is sent, but its not processed because BPFd is sleeping on the perf poll. Fix should be to poll STDIN as well, for any activity, and if so process an interruption within BPFd.