/*++ /* NAME /* master_sig 3 /* SUMMARY /* Postfix master - signal processing /* SYNOPSIS /* #include "master.h" /* /* int master_gotsighup; /* int master_gotsigchld; /* /* int master_sigsetup() /* DESCRIPTION /* This module implements the master process signal handling interface. /* /* master_gotsighup (master_gotsigchld) is set to SIGHUP (SIGCHLD) /* when the process receives a hangup (child death) signal. /* /* master_sigsetup() enables processing of hangup and child death signals. /* Receipt of SIGINT, SIGQUIT, SIGSEGV, SIGILL, or SIGTERM /* is interpreted as a request for termination. Child processes are /* notified of the master\'s demise by sending them a SIGTERM signal. /* DIAGNOSTICS /* BUGS /* Need a way to register cleanup actions. /* SEE ALSO /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
/* *XXXWe'rerunningfromasignalhandler,andshouldnotcallcomplex *routinesatall,butitwouldbeevenworsetosilentlyterminate *withoutinformingthesysadmin.Forthisreason,msg(3)wasmadesafe *forusagebysignalhandlersthatterminatetheprocess.
*/
msg_info("terminating on signal %d", sig);
/* *Undocumented:whenaprocessrunswithPID1,Linuxwon'tdelivera *signalunlesstheprocessspecifiesahandler(i.e.SIG_DFListreated *asSIG_IGN).
*/ if (init_mode) /* Don't call exit() from a signal handler. */
_exit(0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.