net: Minor fix in error checking in TCP/UDP Tx drain logic

This commit is contained in:
Gregory Nutt 2019-07-28 07:39:55 -06:00
parent e0bd90d8a3
commit 124212624d
3 changed files with 4 additions and 4 deletions

View File

@ -747,7 +747,7 @@ void tcp_free(FAR struct tcp_conn_s *conn)
#endif
/* Because g_free_tcp_connections is accessed from user level and event
* processing logic, it is necessary to keep the newtork locked during this
* processing logic, it is necessary to keep the network locked during this
* operation.
*/

View File

@ -65,7 +65,7 @@
* Called with the write buffers have all been sent.
*
* Input Parameters:
* arg - The semaphore that will wake up tcp_txdrain
* arg - The notifier entry.
*
* Returned Value:
* None.
@ -178,7 +178,7 @@ int tcp_txdrain(FAR struct socket *psock,
{
ret = net_timedwait(&waitsem, abstime);
}
while (ret == EINTR);
while (ret == -EINTR);
/* Tear down the disconnect notifier */

View File

@ -144,7 +144,7 @@ int udp_txdrain(FAR struct socket *psock,
{
ret = net_timedwait(&waitsem, abstime);
}
while (ret == EINTR);
while (ret == -EINTR);
/* Tear down the notifier (in case we timed out or were canceled) */