commit | d531f88622490af3c740b4f2935ea5e46ff30c47 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Jun 01 16:55:03 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Sep 05 10:16:42 2017 +0200 |
tree | 6ed7075ba6c5e03002262db3050d2f0ee5ec4b47 | |
parent | f5b8adc5c0e00c0b83439ded9822cb90fc0c51a2 [diff] [blame] |
MINOR: fd: Don't forget to reset fdtab[fd].update when a fd is added/removed It used to be guaranteed by the polling functions on a later call but with concurrent accesses it cannot be granted anymore.
diff --git a/include/proto/fd.h b/include/proto/fd.h index 1efe323..38c12b6 100644 --- a/include/proto/fd.h +++ b/include/proto/fd.h
@@ -338,6 +338,7 @@ { fdtab[fd].ev = 0; fdtab[fd].new = 1; + fdtab[fd].updated = 0; fdtab[fd].linger_risk = 0; fdtab[fd].cloned = 0; if (fd + 1 > maxfd)