@@ -4384,7 +4384,7 @@ static int io_sendmsg(struct io_kiocb *req, unsigned int issue_flags)
4384
4384
kmsg = & iomsg ;
4385
4385
}
4386
4386
4387
- flags = req -> sr_msg .msg_flags ;
4387
+ flags = req -> sr_msg .msg_flags | MSG_NOSIGNAL ;
4388
4388
if (flags & MSG_DONTWAIT )
4389
4389
req -> flags |= REQ_F_NOWAIT ;
4390
4390
else if (issue_flags & IO_URING_F_NONBLOCK )
@@ -4428,7 +4428,7 @@ static int io_send(struct io_kiocb *req, unsigned int issue_flags)
4428
4428
msg .msg_controllen = 0 ;
4429
4429
msg .msg_namelen = 0 ;
4430
4430
4431
- flags = req -> sr_msg .msg_flags ;
4431
+ flags = req -> sr_msg .msg_flags | MSG_NOSIGNAL ;
4432
4432
if (flags & MSG_DONTWAIT )
4433
4433
req -> flags |= REQ_F_NOWAIT ;
4434
4434
else if (issue_flags & IO_URING_F_NONBLOCK )
@@ -4618,7 +4618,7 @@ static int io_recvmsg(struct io_kiocb *req, unsigned int issue_flags)
4618
4618
1 , req -> sr_msg .len );
4619
4619
}
4620
4620
4621
- flags = req -> sr_msg .msg_flags ;
4621
+ flags = req -> sr_msg .msg_flags | MSG_NOSIGNAL ;
4622
4622
if (flags & MSG_DONTWAIT )
4623
4623
req -> flags |= REQ_F_NOWAIT ;
4624
4624
else if (force_nonblock )
@@ -4677,7 +4677,7 @@ static int io_recv(struct io_kiocb *req, unsigned int issue_flags)
4677
4677
msg .msg_iocb = NULL ;
4678
4678
msg .msg_flags = 0 ;
4679
4679
4680
- flags = req -> sr_msg .msg_flags ;
4680
+ flags = req -> sr_msg .msg_flags | MSG_NOSIGNAL ;
4681
4681
if (flags & MSG_DONTWAIT )
4682
4682
req -> flags |= REQ_F_NOWAIT ;
4683
4683
else if (force_nonblock )
0 commit comments