On 2022/02/08 9:51, Thomas Munro wrote:
> an index instead of a pointer...) or, since it's a bit silly to add
> both of those events, maybe we should do:
>
> - if ((wakeEvents & WL_POSTMASTER_DEATH) && IsUnderPostmaster)
> - AddWaitEventToSet(set, WL_POSTMASTER_DEATH, PGINVALID_SOCKET,
> - NULL, NULL);
> -
> if ((wakeEvents & WL_EXIT_ON_PM_DEATH) && IsUnderPostmaster)
> AddWaitEventToSet(set, WL_EXIT_ON_PM_DEATH, PGINVALID_SOCKET,
> NULL, NULL);
> + else if ((wakeEvents & WL_POSTMASTER_DEATH) && IsUnderPostmaster)
> + AddWaitEventToSet(set, WL_POSTMASTER_DEATH, PGINVALID_SOCKET,
> +
+1
Regards,
--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION