summaryrefslogtreecommitdiff
path: root/sig.h
blob: 10627b81ed3499d232f84ea89da44fb4ee67ed3b (plain)
1
2
3
4
5
6
7
#ifndef SIG_H
#define SIG_H

extern void register_signal(int signal, void (*handler)(int));
extern void register_signal_f(int signal, void (*handler)(int), int flags);

#endif /* SIG_H */
'>ignoremode:
authorDavid Howells <dhowells@redhat.com>2016-09-17 10:49:12 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-17 10:53:20 +0100
commit66d58af7f4af53e8318e852efa31a7cb0e31bfb6 (patch)
tree8641f5171ac22ca4742be90e2c757715fe16e0e4
parent0360da6db7d6390e7bd2f6c93b01af29bcd36ad5 (diff)
rxrpc: Fix the putting of client connections
In rxrpc_put_one_client_conn(), if a connection has RXRPC_CONN_COUNTED set on it, then it's accounted for in rxrpc_nr_client_conns and may be on various lists - and this is cleaned up correctly. However, if the connection doesn't have RXRPC_CONN_COUNTED set on it, then the put routine returns rather than just skipping the extra bit of cleanup. Fix this by making the extra bit of clean up conditional instead and always killing off the connection. This manifests itself as connections with a zero usage count hanging around in /proc/net/rxrpc_conns because the connection allocated, but discarded, due to a race with another process that set up a parallel connection, which was then shared instead. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat