[PATCH] Ensured SIGQUIT deletes listening UNIX socket files.

Thibault Charbonnier thibaultcha at fastmail.com
Thu Apr 16 23:51:04 UTC 2020


On 3/3/20 6:28 AM, Maxim Dounin wrote:
> Checking for the oldpid file does not look like a reliable 
> approach to me.  

Hi Maxim,

For this patch to cover TEST 3 in my previously attached test suite
(cancel binary upgrade via SIGQUIT on the new binary), we need a way for
a new binary to know whether an old binary is still running or not.

Do you have another suggestion on how to achieve this? Checking for the
existence of nginx.oldpid seems acceptable to me in this case.

Best,
Thibault


More information about the nginx-devel mailing list