Example #1
0
/*
 * ServiceQuickDie() occurs when signalled SIGQUIT by the postmaster.
 *
 * Some backend has bought the farm,
 * so we need to stop what we're doing and exit.
 */
static void
ServiceQuickDie(SIGNAL_ARGS)
{
	PG_SETMASK(&BlockSig);

	ereport(LOG,
			(errmsg("terminating immediately")));


	/* DO ANY SPECIAL SERVICE QUICKDIE HANDLING HERE */

	/*
	 * NOTE: see MPP-9518, MPP-9396, we need to make sure the atexit()
	 * hooks get cleaned up before calling exit(). quickdie() knows how
	 * to do that.
	 */
	quickdie(PASS_SIGNAL_ARGS);
	/* not reached */
}
Example #2
0
/*
 *  SIGQUIT signal from main file rep process
 */
static void
FileRepSubProcess_ImmediateShutdownHandler(SIGNAL_ARGS)
{
	quickdie(PASS_SIGNAL_ARGS);
}