mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
CLEANUP: sockpair: silence a coverity check about fcntl()
This is about coverity complaining that we didn't check the fcntl call which can't fail, let's consume it. This is issue #1158.
This commit is contained in:
parent
90e9b8c8b6
commit
5b5974104f
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ struct connection *sockpair_accept_conn(struct listener *l, int *status)
|
|||
int cfd;
|
||||
|
||||
if ((cfd = recv_fd_uxst(l->rx.fd)) != -1)
|
||||
fcntl(cfd, F_SETFL, O_NONBLOCK);
|
||||
DISGUISE(fcntl(cfd, F_SETFL, O_NONBLOCK));
|
||||
|
||||
if (likely(cfd != -1)) {
|
||||
/* Perfect, the connection was accepted */
|
||||
|
|
|
|||
Loading…
Reference in a new issue