From 1fa854285d33ad117669831766e54ec6a2f20799 Mon Sep 17 00:00:00 2001 From: Jussi Kivilinna Date: Tue, 12 Sep 2017 07:39:05 -0600 Subject: [PATCH] net/socket: Do not enter cancellation point in psock_send() as this is already done in send() --- net/socket/send.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/socket/send.c b/net/socket/send.c index 4556f128d16..36cb6a6e2d3 100644 --- a/net/socket/send.c +++ b/net/socket/send.c @@ -124,16 +124,11 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len, DEBUGASSERT(psock != NULL && buf != NULL); - /* Treat as a cancellation point */ - - (void)enter_cancellation_point(); - /* Let the address family's send() method handle the operation */ DEBUGASSERT(psock->s_sockif != NULL && psock->s_sockif->si_send != NULL); ret = psock->s_sockif->si_send(psock, buf, len, flags); - leave_cancellation_point(); if (ret < 0) { nerr("ERROR: socket si_send() (or usrsock_sendto()) failed: %d\n", ret);