]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: threads: always set an owner to the thread_sync pipe
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 06:28:37 +0000 (07:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jan 2018 06:31:08 +0000 (07:31 +0100)
commitc20d73733871ee820fe87880e076a00cbad1b7d6
treebc20bd2db7e030463b890917fc948e8bfde61919
parent0048dd04c9a6e9b9c7def8e7060793290e0c36ff
BUG/MINOR: threads: always set an owner to the thread_sync pipe

The owner of the fd used by the synchronization pipe was set to NULL,
making it ignored by maxfd computation. The risk would be that some
synchronization events get delayed between threads when using poll()
or select(). However this is only theorical since the pipe is created
before listeners are bound so normally its FD should be lower and
this should normally not happen. The only possible situation would
be if all listeners are bound to inherited FDs which are lower than
the pipe's.

This patch must be backported to 1.8.
src/hathreads.c