aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-05-22 11:36:50 -0700
committerBen Pfaff <blp@nicira.com>2012-07-18 10:30:49 -0700
commitd41d4b714d29091dd502dd8705ef489467e11a43 (patch)
tree3bd612bcd21fdf5e21048d9fb23d0bbcee6a7992 /lib/util.h
parente8087a87a3155656596d92ebecfa37841b637ef7 (diff)
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>
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index dd86de26..809ae9c5 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -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)