summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46e194c)
raw | patch | inline | side by side (parent: 46e194c)
author | Florian Forster <octo@crystal.wlan.home.verplant.org> | |
Wed, 31 Jan 2007 13:40:01 +0000 (14:40 +0100) | ||
committer | Florian Forster <octo@crystal.wlan.home.verplant.org> | |
Wed, 31 Jan 2007 13:40:01 +0000 (14:40 +0100) |
src/unixsock.c | patch | blob | history |
diff --git a/src/unixsock.c b/src/unixsock.c
index de1fa4fdcacd07b00eba1b872d384ba86a94cbab..f6dbf7305d54e47517cb62557d4e68f559983d9f 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 = -1;
+static pthread_t listen_thread = NULL;
/* Linked list and auxilliary variables for saving values */
static value_cache_t *cache_head = NULL;
{
void *ret;
- if (listen_thread >= 0)
+ if (listen_thread != NULL)
{
pthread_kill (listen_thread, SIGTERM);
pthread_join (listen_thread, &ret);