Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang - Mailing list pgsql-bugs

From Hari Babu
Subject Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Date
Msg-id 003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com
Whole thread Raw
In response to Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
List pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us > writes:
>I concluded that it probably wasn't a good idea to have the additional
state transition in SIGINT handling.  Generally >PM_STARTUP means "we're
running the startup process and nothing else", and that's useful state info
that we shouldn't >throw away lightly.

I tested the patch, it is working fine.

I have a query regarding the changing of pmState only incase of SIGTERM but
not incase of SIGINT.
Is there any reason to handle like this? or Is it ok to modify the handling
of pmState in SIGTERM same as SIGINT?


Regards,
Hari babu.

pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: BUG #7676: pgSocketCheck dosen`t return
Next
From: Tom Lane
Date:
Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang