mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
vlog: Add VLOG_ABORT() to log and call abort().
Whereas VLOG_FATAL() eventually calls exit(1), VLOG_ABORT() eventually calls abort(). The key difference is that abort() will cause a "monitor" process to restart, where exit(1) will cause it to exit along with the monitored process. Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -188,6 +188,8 @@ void ovs_strzcpy(char *dst, const char *src, size_t size);
|
||||
|
||||
void ovs_abort(int err_no, const char *format, ...)
|
||||
PRINTF_FORMAT(2, 3) NO_RETURN;
|
||||
void ovs_abort_valist(int err_no, const char *format, va_list)
|
||||
PRINTF_FORMAT(2, 0) NO_RETURN;
|
||||
void ovs_fatal(int err_no, const char *format, ...)
|
||||
PRINTF_FORMAT(2, 3) NO_RETURN;
|
||||
void ovs_fatal_valist(int err_no, const char *format, va_list)
|
||||
|
Reference in New Issue
Block a user