git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a dilatometer "sensor"
[matches/MCTX3420.git]
/
server
/
log.c
diff --git
a/server/log.c
b/server/log.c
index
c23d158
..
bd210d8
100644
(file)
--- a/
server/log.c
+++ b/
server/log.c
@@
-15,6
+15,7
@@
static const char * unspecified_funct = "???";
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.
/**
* 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);
funct = unspecified_funct;
syslog(LOG_CRIT, "FATAL: %s (%s:%d) - %s", funct, file, line, buffer);
+
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
UCC
git Repository :: git.ucc.asn.au