Fix timing issue in test_sendmsg_recvmsg_connectionless
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
parent
28baa5b080
commit
6b8f24c18b
@ -301,7 +301,11 @@ int test_sendmsg_recvmsg_connectionless() {
|
||||
}
|
||||
|
||||
ret = server_connectionless_recvmsg();
|
||||
if (ret < 0) { return -1; }
|
||||
/* If child client send happens before recvmsg, EINTR may
|
||||
be triggered which is not failed case */
|
||||
if (ret < 0 && errno != EINTR) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = wait_for_child_exit(child_pid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user