diff options
| author | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:24:23 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2004-11-16 06:24:23 +0000 |
| commit | 8edc0537bebb743b31fb7aebc1c3d725aa998535 (patch) | |
| tree | aa1000e5dad10fadbd13ec5fd2125a5c231f9b18 /src/initlog.c | |
| parent | ceeb7c028d5fd96b61f43734e3f7ea635459e1ed (diff) | |
fix various minilogd bogosities (uninitialized variable, handling of wrong-protocol connections, don't check atime) (#106338)
Diffstat (limited to 'src/initlog.c')
| -rw-r--r-- | src/initlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initlog.c b/src/initlog.c index ee7dbd42..23f5c508 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -201,7 +201,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); |
