diff options
author | Ben Pfaff <blp@nicira.com> | 2010-08-12 11:05:07 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-08-12 15:45:50 -0700 |
commit | e2c1a82010cc4f35cb576d41c3c2020010503784 (patch) | |
tree | e3f80a6edde2fd1994223eab960eb2fdca752326 /lib/util.c | |
parent | 2cc906419fd8592c24a281a2c4b0932ad978be3d (diff) |
util: Make ovs_fatal() understand EOF also.
ovs_error() interprets EOF as "end of file" when printing an error message,
so ovs_fatal() might as well.
Diffstat (limited to 'lib/util.c')
-rw-r--r-- | lib/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -156,7 +156,8 @@ ovs_fatal(int err_no, const char *format, ...) vfprintf(stderr, format, args); va_end(args); if (err_no != 0) - fprintf(stderr, " (%s)", strerror(err_no)); + fprintf(stderr, " (%s)", + err_no == EOF ? "end of file" : strerror(err_no)); putc('\n', stderr); exit(EXIT_FAILURE); |