Signals blocked during auth

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: PostgreSQL HACKERS <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Signals blocked during auth
Date: 2001-08-21 21:47:44
Message-ID: 200108212147.f7LLliF20431@jupiter.us.greatbridge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

fortunately the problems with a malfunctioning client during
the authentication don't cause the v7.2 postmaster to hang
any more (thanks to Peter and Tom). The client authentication
is moved into the forked off process.

Now one little problem remains. If a bogus client causes a
child to hang before becoming a real backend, this child is
in the backend list of the postmaster, but has all signals
blocked. Thus, preventing the postmaster from beeing able to
shutdown.

I think the correct behaviour should be to enable SIGTERM and
SIGQUIT during client authentication and simply exit(0) if
they occur. If so, what would be the best way to get these
two signals out of the block mask?

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2001-08-21 21:51:38 Re: Link to bug webpage
Previous Message Ned Wolpert 2001-08-21 21:37:05 Re: JDBC changes for 7.2... some questions...