chiark / gitweb /
Properly log fatal errors encountered after program startup.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Feb 2016 19:33:40 +0000 (19:33 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 18 Feb 2016 15:56:13 +0000 (15:56 +0000)
commit429dcd8d6a215be133a0b587b69516197922b9ff
tree0cd653218daa792e6d90ddf4708bb1129c2f9572
parenta8eb4066035f3b4fadb48e8cdf21252c3b73d9c7
Properly log fatal errors encountered after program startup.

The code used to use mLib's `die', which reports to stderr, but we ought
properly to report errors to syslog if that's been requested.  So
introduce and use a new function `fatal' which does the right thing, and
use it in the places where it's necessary.
linux.c
yaid.c
yaid.h