]> git.proxmox.com Git - mirror_frr.git/commit - lib/log.c
2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Thu, 3 Feb 2005 16:42:40 +0000 (16:42 +0000)
committerajs <ajs>
Thu, 3 Feb 2005 16:42:40 +0000 (16:42 +0000)
commit1e2213541bbda26c49667b699a333d87bcc0f2e6
tree23ed10aeadeb22a4f3e40c794a829604cc25cb7e
parent847947f20b152f0b64057a7115e118b44d238b5c
2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* log.c: (syslog_sigsafe) Reduce scope of syslog_fd: it is accessed
  inside this function only.
  (open_crashlog) New function to open /var/tmp/quagga.<daemon>.crashlog
  with flags O_WRONLY|O_CREAT|O_EXCL to save some crash info.
  (zlog_signal,_zlog_assert_failed) Increase logging priority from
  LOG_ERR to LOG_CRIT.  If no file logging is configured, try to use
  open_crashlog to create a crash logfile.
  (zlog_backtrace_sigsafe) If a crashlog file descriptor is open,
  dump a backtrace to that file.
lib/ChangeLog
lib/log.c