summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 00e7aa5)
raw | patch | inline | side by side (parent: 00e7aa5)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 May 2007 21:06:44 +0000 (23:06 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 May 2007 21:06:44 +0000 (23:06 +0200) |
src/unixsock.c | patch | blob | history |
diff --git a/src/unixsock.c b/src/unixsock.c
index ac7828fe7fc318b641c9729e057723dc528c5876..e73f04acde89ab9bffb2f19132ae09a97f6d5cb2 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
value_cache_t *vc;
int i;
- DEBUG ("unixsock plugin: cache_insert: ds->ds_num = %i;"
+ DEBUG ("unixsock plugin: cache_insert: ds->type = %s; ds->ds_num = %i;"
" vl->values_len = %i;",
- ds->ds_num, vl->values_len);
+ ds->type, ds->ds_num, vl->values_len);
assert (ds->ds_num == vl->values_len);
vc = (value_cache_t *) malloc (sizeof (value_cache_t));
close (sock_fd);
sock_fd = -1;
+ status = unlink ((sock_file != NULL) ? sock_file : US_DEFAULT_PATH);
+ if (status != 0)
+ {
+ char errbuf[1024];
+ NOTICE ("unixsock plugin: unlink (%s) failed: %s",
+ (sock_file != NULL) ? sock_file : US_DEFAULT_PATH,
+ sstrerror (errno, errbuf, sizeof (errbuf)));
+ }
+
return ((void *) 0);
} /* void *us_server_thread */