WaitLatchOrSocket seems to not count to 4 right... - Mailing list pgsql-hackers

From Greg Stark
Subject WaitLatchOrSocket seems to not count to 4 right...
Date
Msg-id CAM-w4HOxnokMVJmsU7KAB7mT71_Y97n8TtBDWfJTesAf4tcQCA@mail.gmail.com
Whole thread Raw
Responses Re: WaitLatchOrSocket seems to not count to 4 right...
List pgsql-hackers
Unless I'm misreading this code I think the nevents in
WaitLatchOrSocket should really be 4 not 3. At least there are 4 calls
to AddWaitEventToSet in it and I think it's possible to trigger all 4.

I guess it's based on knowing that nobody would actually set
WL_EXIT_ON_PM_DEATH and WL_POSTMASTER_DEATH on the same waitset?

-- 
greg



pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: Re: style for typedef of function that will be pointed to
Next
From: Tom Lane
Date:
Subject: Re: fix crash with Python 3.11