On Wed, Mar 01, 2023 at 03:34:30PM -0800, Andres Freund wrote: > On 2023-02-28 13:45:41 +0900, Michael Paquier wrote: >> From what I can see, SIGTERM is actually received by the backends >> before SIGQUIT, and I can also see that the backends have enough room >> to process CFIs in some cases, especially short queries, even before >> reaching quickdie() and its exit(). So the window between SIGTERM and >> SIGQUIT is not as long as one would think. > > What do you mean with the last ssentence? Why would one think that the window > between them is long? Do you mean that it's not as short?
That should have been worded as "short". In what I looked at, both signal handlers are processed in the same millisecond, still the backend can have time to process a full CFI between the SIGTERM and SIGQUIT handlers, before the SIGQUIT handler has the time to exit(). -- Michael
signature.asc
Description: PGP signature