summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a5d35f8)
raw | patch | inline | side by side (parent: a5d35f8)
author | Florian Forster <sifnfors@faui02f.informatik.uni-erlangen.de> | |
Wed, 31 Jan 2007 14:38:36 +0000 (15:38 +0100) | ||
committer | Florian Forster <sifnfors@faui02f.informatik.uni-erlangen.de> | |
Wed, 31 Jan 2007 14:38:36 +0000 (15:38 +0100) |
src/unixsock.c | patch | blob | history |
diff --git a/src/unixsock.c b/src/unixsock.c
index f6dbf7305d54e47517cb62557d4e68f559983d9f..12ebc0995cf0d2bfe85ca9c56768ca83988f8c92 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
static char *sock_group = NULL;
static int sock_perms = S_IRWXU | S_IRWXG;
-static pthread_t listen_thread = NULL;
+static pthread_t listen_thread = (pthread_t) 0;
/* Linked list and auxilliary variables for saving values */
static value_cache_t *cache_head = NULL;
{
void *ret;
- if (listen_thread != NULL)
+ if (listen_thread != (pthread_t) 0)
{
pthread_kill (listen_thread, SIGTERM);
pthread_join (listen_thread, &ret);
+ listen_thread = (pthread_t) 0;
}
plugin_unregister_init ("unixsock");