Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang

From: Hari Babu <haribabu(dot)kommi(at)huawei(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Date: 2012-11-21 13:32:03
Message-ID: 003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-11-21 15:59:18 Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Previous Message Astolfo 2012-11-21 12:31:28 Re: BUG #6722: Debugger broken?