[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4741 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4741 - libmicrohttpd/src/daemon |
Date: |
Tue, 3 Apr 2007 18:09:13 -0600 (MDT) |
Author: dpittman
Date: 2007-04-03 18:09:13 -0600 (Tue, 03 Apr 2007)
New Revision: 4741
Modified:
libmicrohttpd/src/daemon/daemon.c
Log:
First draft implementation of libmicrohttpd API. Many features incomplete at
this time, some functionality has yet to be tested.
Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c 2007-04-04 00:02:54 UTC (rev 4740)
+++ libmicrohttpd/src/daemon/daemon.c 2007-04-04 00:09:13 UTC (rev 4741)
@@ -276,7 +276,7 @@
daemon->connections[first_free]->id = first_free;
daemon->connections[first_free]->daemon = daemon;
- daemon->connections[first_free]->pid = NULL;
+ daemon->connections[first_free]->pid = (pthread_t)-1;
daemon->connections[first_free]->bufPos = 0;
daemon->connections[first_free]->messagePos= 0;
daemon->connections[first_free]->responsePending = 0;
@@ -1384,7 +1384,7 @@
retVal->dh = dh;
retVal->dh_cls = dh_cls;
retVal->shutdown = 0;
- retVal->pid = NULL;
+ retVal->pid = (pthread_t)-1;
retVal->firstFreeHandler = 0;
for(i = 0; i < MHD_MAX_HANDLERS; i++) {
@@ -1475,13 +1475,13 @@
daemon->shutdown = 1;
- if(daemon->pid != NULL) {
+ if(daemon->pid != (pthread_t)-1) {
pthread_join(daemon->pid, NULL);
}
for(i = 0; i < MHD_MAX_CONNECTIONS; i++) {
if(daemon->connections[i] != NULL) {
- if(daemon->connections[i]->pid != NULL) {
+ if(daemon->connections[i]->pid != (pthread_t)-1) {
pthread_join(daemon->connections[i]->pid, NULL);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4741 - libmicrohttpd/src/daemon,
gnunet <=