Re: worker_spi shouldn't execute again on sigterm

2018-11-28 Thread Thomas Munro
On Thu, Nov 29, 2018 at 2:11 PM Michael Paquier wrote: > On Wed, Nov 28, 2018 at 09:55:37AM -0600, Jeremy Finzel wrote: > > I noticed that the way the test module worker_spi is written, it will > > execute the main loop SQL one more time after it gets a sigterm, THEN exit > > 1. This was surprisi

Re: worker_spi shouldn't execute again on sigterm

2018-11-28 Thread Michael Paquier
On Wed, Nov 28, 2018 at 09:55:37AM -0600, Jeremy Finzel wrote: > I noticed that the way the test module worker_spi is written, it will > execute the main loop SQL one more time after it gets a sigterm, THEN exit > 1. This was surprising to me where I used this module as a pattern for my > own back

worker_spi shouldn't execute again on sigterm

2018-11-28 Thread Jeremy Finzel
I noticed that the way the test module worker_spi is written, it will execute the main loop SQL one more time after it gets a sigterm, THEN exit 1. This was surprising to me where I used this module as a pattern for my own background worker as I would have thought it should bail immediately withou