fix the program cannot be terminated through ctrl-c#2
fix the program cannot be terminated through ctrl-c#2jschwinger233 merged 1 commit intojschwinger233:mainfrom
Conversation
|
Thanks for your PR. Basically I have no question in this change, just want to add a point: I'm not sure how this change can fix the non-interrupting issue. If ctrl-c doesn't stop the process, there must be somewhere blocking for a long term so that process has no change to reach the "cancel point" to check |
Lines 109 to 119 in 105f01e In most cases, line 111 will always be executed and there is no way to break the first for loop. for example: I can not terminate this process through ctrl-c. |
|
Understood, you pointed out that the process can't reach ctx check point when two bpf syscalls keep succeeding fetching events. You're correct. |
No description provided.