X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Funixsock.c;h=6abbfef9bd248abac42b3578eb6d3d1daf844df9;hb=b7a5d1ddb9fa3a650c2886efc3d92142f028ea0d;hp=ddb3a52fb344d0a80829d84b6647a16592defb96;hpb=6d43c759c9495118ef3c088fd2d06fd09c4fda8f;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index ddb3a52f..6abbfef9 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -352,12 +352,13 @@ static int us_open_socket (void) sizeof (sa.sun_path) - 1); /* unlink (sa.sun_path); */ + DEBUG ("unixsock plugin: socket path = %s", sa.sun_path); + status = bind (sock_fd, (struct sockaddr *) &sa, sizeof (sa)); if (status != 0) { char errbuf[1024]; sstrerror (errno, errbuf, sizeof (errbuf)); - DEBUG ("bind failed: %s; sa.sun_path = %s", errbuf, sa.sun_path); ERROR ("unixsock plugin: bind failed: %s", errbuf); close (sock_fd); sock_fd = -1;