Skip to content
Commit c46bfba1 authored by wangkeqi's avatar wangkeqi Committed by David S. Miller
Browse files

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: default avatarwangkeqi <wangkeqiwang@didiglobal.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 059d37b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment