summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: abba955)
raw | patch | inline | side by side (parent: abba955)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 14:31:22 +0000 (16:31 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 14:31:22 +0000 (16:31 +0200) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index b5d8efb4de62d65e3ec5c01e7a4018ac048087b5..35ffb3935f42dbd23b662e0984f56fe671bb1234 100644 (file)
--- a/src/network.c
+++ b/src/network.c
listen_loop++;
- pthread_kill (listen_thread, SIGTERM);
- pthread_join (listen_thread, NULL /* no return value */);
+ if (listen_thread != (pthread_t) 0)
+ {
+ pthread_kill (listen_thread, SIGTERM);
+ pthread_join (listen_thread, NULL /* no return value */);
+ listen_thread = (pthread_t) 0;
+ }
listen_thread = 0;
+ /* TODO: Close `sending_sockets' */
+
+ plugin_unregister_config ("network");
+ plugin_unregister_init ("network");
+ plugin_unregister_write ("network");
+ plugin_unregister_shutdown ("network");
+
return (0);
-}
+} /* int network_shutdown */
static int network_init (void)
{