diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-05-18 11:07:04 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-05-18 11:07:04 +0100 |
commit | 5f5809b14e76311d6fab751fe114b2ef495af10c (patch) | |
tree | 2e45bf41bbf577aaf8a43288cf40bef2b4daed5b /lib/vty_io_basic.c | |
parent | 764827bdcf1d4188593efa1c5c4e1214f12e3d5e (diff) | |
download | quagga-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/vty_io_basic.c')
0 files changed, 0 insertions, 0 deletions