net: Minor fix in error checking in TCP/UDP Tx drain logic
This commit is contained in:
parent
e0bd90d8a3
commit
124212624d
@ -747,7 +747,7 @@ void tcp_free(FAR struct tcp_conn_s *conn)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Because g_free_tcp_connections is accessed from user level and event
|
/* 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.
|
* operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
* Called with the write buffers have all been sent.
|
* Called with the write buffers have all been sent.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* arg - The semaphore that will wake up tcp_txdrain
|
* arg - The notifier entry.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* None.
|
* None.
|
||||||
@ -178,7 +178,7 @@ int tcp_txdrain(FAR struct socket *psock,
|
|||||||
{
|
{
|
||||||
ret = net_timedwait(&waitsem, abstime);
|
ret = net_timedwait(&waitsem, abstime);
|
||||||
}
|
}
|
||||||
while (ret == EINTR);
|
while (ret == -EINTR);
|
||||||
|
|
||||||
/* Tear down the disconnect notifier */
|
/* Tear down the disconnect notifier */
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ int udp_txdrain(FAR struct socket *psock,
|
|||||||
{
|
{
|
||||||
ret = net_timedwait(&waitsem, abstime);
|
ret = net_timedwait(&waitsem, abstime);
|
||||||
}
|
}
|
||||||
while (ret == EINTR);
|
while (ret == -EINTR);
|
||||||
|
|
||||||
/* Tear down the notifier (in case we timed out or were canceled) */
|
/* Tear down the notifier (in case we timed out or were canceled) */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user