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.
s1[maxlen-1] = '\0';
#ifdef ISSERVER
syslog(LOG_ERR, "%s", s1);
s1[maxlen-1] = '\0';
#ifdef ISSERVER
syslog(LOG_ERR, "%s", s1);
+ syslog(LOG_ERR, "Exiting.");
- fprintf(stderr, "Error: %s\n", s1);
+ fprintf(stderr, "Error: %s\nExiting.\n", s1);