X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Flog.c;h=bd210d89d2f73d738ee051cac96ee940c4460323;hb=15a32ab1123375e1a52c319fca71ab8d02c58261;hp=c23d1584c905789d37b505468d45fd3482d5cb39;hpb=f5e2b07860f26bde42b9a9eb41ef68138ff2a379;p=matches%2FMCTX3420.git diff --git a/server/log.c b/server/log.c index c23d158..bd210d8 100644 --- a/server/log.c +++ b/server/log.c @@ -15,6 +15,7 @@ static const char * unspecified_funct = "???"; + /** * Print a message to stderr and log it via syslog. The message must be * less than BUFSIZ characters long, or it will be truncated. @@ -111,6 +112,7 @@ void FatalEx(const char * funct, const char * file, int line, ...) funct = unspecified_funct; syslog(LOG_CRIT, "FATAL: %s (%s:%d) - %s", funct, file, line, buffer); + exit(EXIT_FAILURE); }