commit | 36716a7fec1d84ab4c590dfb038aa30a4ad92b57 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue May 30 11:07:16 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:30 2017 +0100 |
tree | 0a423f9d81d986726bf995296cb862491fb1e097 | |
parent | a7c5d43085d93d7d02d5181d696eaeaf9905633f [diff] [blame] |
MEDIUM: threads/fd: Initialize the process mask during the call to fd_insert Listeners will allow any threads to process the corresponding fd. But for other FDs, we limit the processing to the current thread.
diff --git a/src/dns.c b/src/dns.c index 2d684b0..c2b87c0 100644 --- a/src/dns.c +++ b/src/dns.c
@@ -193,7 +193,7 @@ dgram->t.sock.fd = fd; fdtab[fd].owner = dgram; fdtab[fd].iocb = dgram_fd_handler; - fd_insert(fd); + fd_insert(fd, (unsigned long)-1); fd_want_recv(fd); return 0; }