Hi, I'm relatively new to syslog-ng and have been working with it constantly over the last couple of weeks trying to get it to work with my systems. For the most part I have had no problems, or very few but now I am getting an odd error. I am running it on a Sun Solaris 5.6 and have run it on other systems identical to this system but I am getting this error: Error creating AF_INET socket (Error 0) Error initializing configuration, exiting. I've checked my config file and it doesn't appear to be messed up. Any ideas? Thanks Drew
I'm relatively new to syslog-ng and have been working with it constantly over the last couple of weeks trying to get it to work with my systems. For the most part I have had no problems, or very few but now I am getting an odd error.
I am running it on a Sun Solaris 5.6 and have run it on other systems identical to this system but I am getting this error:
Error creating AF_INET socket (Error 0) Error initializing configuration, exiting.
I've checked my config file and it doesn't appear to be messed up.
Hmm.. can you send me a truss output ? Probably connect() returns something other than EWOULDBLOCK. Maybe this patch helps some: diff -u -r1.19 io.c --- io.c 2000/02/04 19:02:04 1.19 +++ io.c 2000/03/15 16:36:53 @@ -845,7 +846,7 @@ if (inet_address2sockaddr_in(c, sizeof(in), (struct sockaddr *) &in)) { verbose("connecting fd %i to inetaddr %S, port %i\n", fd, i->ip, i->port); - if (connect(fd, (struct sockaddr *) &in, sizeof(in)) < -1) { + if (connect(fd, (struct sockaddr *) &in, sizeof(in)) < 0) { switch (errno) { case EWOULDBLOCK: return 1; @@ -936,7 +937,7 @@ verbose("connecting fd %i, unixaddr: %S\n", fd, a->path); if (unix_address2sockaddr_un(c, sizeof(un), (struct sockaddr *) &un)) { - if (connect(fd, (struct sockaddr *) &un, sizeof(un)) < -1) { + if (connect(fd, (struct sockaddr *) &un, sizeof(un)) < 0) { switch (errno) { case EWOULDBLOCK: return 1; this is against libol/src/io.c -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
participants (2)
-
Balazs Scheidler
-
Hamilton, Andrew Mr.