add extra logging if accept() fails

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-05-03 13:08:05 +02:00
parent 462063fc26
commit fb6675eb73
2 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@
#include "piler-config.h"
#include "params.h"
#define VERSION "1.3.4"
#define VERSION "1.3.5-pre1"
#define BUILD 994
#define BUILD 995
#define HOSTID "mailarchiver"

View File

@ -249,7 +249,7 @@ int main(int argc, char **argv){
break;
}
else {
syslog(LOG_PRIORITY, "ERROR: accept()");
syslog(LOG_PRIORITY, "ERROR: accept(): '%s'", strerror(errno));
break;
}
}