From 46232f088b9c8db343b7c0aa6adeb2d94e5464ea Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Sat, 27 Feb 2010 22:39:35 +0100 Subject: [PATCH] Be explicit when we exit Currently, when a fatal error occurs, nbd-server logs that error, but then silently exits -- i.e., it is left to the user to guess that it has exited. We should be more explicit about that fact. --- cliserv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cliserv.h b/cliserv.h index cefdad2..77310c3 100644 --- a/cliserv.h +++ b/cliserv.h @@ -111,8 +111,9 @@ void err(const char *s) { s1[maxlen-1] = '\0'; #ifdef ISSERVER syslog(LOG_ERR, "%s", s1); + syslog(LOG_ERR, "Exiting."); #endif - fprintf(stderr, "Error: %s\n", s1); + fprintf(stderr, "Error: %s\nExiting.\n", s1); exit(1); } -- 1.7.10.4