This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Mon Mar 9 14:52:03 2020 -0500
sanlock: clear revents in client_free
By clearing poll revents sanlock won't receive
or process anything more from the client.
After calling client_free() from the main loop,
we will not have to process a poll error for
that client and call client_free() again.
src/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main.c b/src/main.c
index d2882ba..8df2495 100644
@@ -283,6 +283,7 @@ static void _client_free(int ci)
/* make poll() ignore this connection */
pollfd[ci].fd = -1;
pollfd[ci].events = 0;
+ pollfd[ci].revents = 0;
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date