net/socket: Do not enter cancellation point in psock_send() as this is already done in send()

This commit is contained in:
Jussi Kivilinna
2017-09-12 07:39:05 -06:00
committed by Gregory Nutt
parent 61878848ad
commit 1fa854285d
-5
View File
@@ -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);