Skip to content
Commit 210f0353 authored by David Howells's avatar David Howells
Browse files

rxrpc: Allow listen(sock, 0) to be used to disable listening



Allow listen() with a backlog of 0 to be used to disable listening on an
AF_RXRPC socket.  This also releases any preallocation, thereby making it
easier for a kernel service to account for all allocated call structures
when shutting down the service.

The socket cannot thereafter have listening reenabled, but must rather be
closed and reopened.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 56ff9c83
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