summaryrefslogtreecommitdiffstats
path: root/lib/qpath.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-05-18 11:07:04 +0100
committerChris Hall <chris.hall@highwayman.com>2011-05-18 11:07:04 +0100
commit5f5809b14e76311d6fab751fe114b2ef495af10c (patch)
tree2e45bf41bbf577aaf8a43288cf40bef2b4daed5b /lib/qpath.c
parent764827bdcf1d4188593efa1c5c4e1214f12e3d5e (diff)
downloadquagga-5f5809b14e76311d6fab751fe114b2ef495af10c.tar.bz2
quagga-5f5809b14e76311d6fab751fe114b2ef495af10c.tar.xz
Improve writing of pid lock file and error reporting.
Added fsync() after writing the pid to the lock file to push the result to the file system immediately. Any error in the procedure is now treated as fatal, and the daemon will exit(1). (Previously only the open and the lock had to succeed.) Any error is logged and is (now) output to stderr. If the pid file is locked, the error message reports the pid which owns the lock.
Diffstat (limited to 'lib/qpath.c')
0 files changed, 0 insertions, 0 deletions