You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Since commit6a2a70a, we've used signalfd() to receive latch wakeupswhen building with WAIT_USE_EPOLL (default for Linux and illumos), andour traditional self-pipe when falling back to WAIT_USE_POLL (defaultfor other Unixes with neither epoll() nor kqueue()).Unexplained hangs and kernel panics have been reported on illumossystems, apparently linked to this use of signalfd(), leading illumosusers and build farm members to have to define WAIT_USE_POLL explicitlyas a work-around. A bug report exists athttps://www.illumos.org/issues/13700 but no fix is available yet.Let's provide a way for illumos users to go back to self-pipes withepoll(), like releases before 14, and choose that by default. No changefor Linux users. To help with development/debugging, macrosWAIT_USE_{EPOLL,POLL} and WAIT_USE_{SIGNALFD,SELF_PIPE} can be definedexplicitly to override the defaults.Back-patch to 14, where we started using signalfd().Reported-by: Japin Li <japinli@hotmail.com>Reported-by: Olaf Bohlen <olbohlen@eenfach.de> (off-list)Reviewed-by: Japin Li <japinli@hotmail.com>Discussion:https://postgr.es/m/MEYP282MB1669C8D88F0997354C2313C1B6CA9%40MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM