From ddef4757714ccc9d566b0fba4494528c32bcaa9d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 16 Nov 2004 06:19:13 +0000 Subject: fix various minilogd bogosities (uninitialized variable, handling of wrong-protocol connections, don't check atime) (#106338) --- src/initlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/initlog.c') diff --git a/src/initlog.c b/src/initlog.c index 13a376ec..3b1cded6 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -213,7 +213,7 @@ int trySocket() { strncpy(addr.sun_path,_PATH_LOG,sizeof(addr.sun_path)-1); if (connect(s,(struct sockaddr *) &addr,sizeof(addr))<0) { - if (errno == EPROTOTYPE) { + if (errno == EPROTOTYPE || errno == ECONNREFUSED) { DDEBUG("connect failed (EPROTOTYPE), trying stream\n"); close(s); s = socket(AF_LOCAL, SOCK_STREAM, 0); -- cgit