diff options
author | wangkeqi <wangkeqiwang@didiglobal.com> | 2023-12-23 09:50:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-01-02 17:13:48 +0300 |
commit | c46bfba1337d301661dbb23cfd905d4cb51f27ca (patch) | |
tree | d14cc7e2301503957e6361e6b0678393fb7af8d1 /tools | |
parent | 059d37b718d38d26087121c754691df77acfc66b (diff) | |
download | linux-c46bfba1337d301661dbb23cfd905d4cb51f27ca.tar.xz |
connector: Fix proc_event_num_listeners count not cleared
When we register a cn_proc listening event, the proc_event_num_listener
variable will be incremented by one, but if PROC_CN_MCAST_IGNORE is
not called, the count will not decrease.
This will cause the proc_*_connector function to take the wrong path.
It will reappear when the forkstat tool exits via ctrl + c.
We solve this problem by determining whether
there are still listeners to clear proc_event_num_listener.
Signed-off-by: wangkeqi <wangkeqiwang@didiglobal.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions