diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-09 20:43:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-09 20:43:13 +0000 |
commit | e82e13bba5f93be46f4870a0bb32e4367d7d4021 (patch) | |
tree | 946a383b966c311ef19dc498a3f30c04cd536154 | |
parent | d7a7a47de56eebd2d1bd31fa74240dfda9929649 (diff) | |
download | libmicrohttpd-e82e13bba5f93be46f4870a0bb32e4367d7d4021.tar.gz libmicrohttpd-e82e13bba5f93be46f4870a0bb32e4367d7d4021.zip |
fixing #3179
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/include/microhttpd.h | 2 | ||||
-rw-r--r-- | src/microhttpd/daemon.c | 10 |
3 files changed, 16 insertions, 1 deletions
@@ -1,3 +1,8 @@ | |||
1 | Mon Dec 9 21:41:57 CET 2013 | ||
2 | Fix for per-worker daemon pipes enabled with | ||
3 | MHD_USE_SUSPEND_RESUME that were not closed in | ||
4 | MHD_stop_daemon. -MH | ||
5 | |||
1 | Sat Dec 7 00:44:49 CET 2013 | 6 | Sat Dec 7 00:44:49 CET 2013 |
2 | Fixing warnings and build issue if --disable-https is given | 7 | Fixing warnings and build issue if --disable-https is given |
3 | to configure. -CG | 8 | to configure. -CG |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 2fddf6c9..5c030c8d 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -121,7 +121,7 @@ extern "C" | |||
121 | * Current version of the library. | 121 | * Current version of the library. |
122 | * 0x01093001 = 1.9.30-1. | 122 | * 0x01093001 = 1.9.30-1. |
123 | */ | 123 | */ |
124 | #define MHD_VERSION 0x00093201 | 124 | #define MHD_VERSION 0x00093202 |
125 | 125 | ||
126 | /** | 126 | /** |
127 | * MHD-internal return code for "YES". | 127 | * MHD-internal return code for "YES". |
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index f94e4630..2531c6cc 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3978,6 +3978,16 @@ MHD_stop_daemon (struct MHD_Daemon *daemon) | |||
3978 | (0 != CLOSE (daemon->worker_pool[i].epoll_fd)) ) | 3978 | (0 != CLOSE (daemon->worker_pool[i].epoll_fd)) ) |
3979 | MHD_PANIC ("close failed\n"); | 3979 | MHD_PANIC ("close failed\n"); |
3980 | #endif | 3980 | #endif |
3981 | if ( (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) | ||
3982 | { | ||
3983 | if (-1 != daemon->worker_pool[i].wpipe[1]) | ||
3984 | { | ||
3985 | if (0 != CLOSE (daemon->worker_pool[i].wpipe[0])) | ||
3986 | MHD_PANIC ("close failed\n"); | ||
3987 | if (0 != CLOSE (daemon->worker_pool[i].wpipe[1])) | ||
3988 | MHD_PANIC ("close failed\n"); | ||
3989 | } | ||
3990 | } | ||
3981 | } | 3991 | } |
3982 | free (daemon->worker_pool); | 3992 | free (daemon->worker_pool); |
3983 | } | 3993 | } |