summaryrefslogtreecommitdiff
path: root/plugins/loopback.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-04-23 12:04:46 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-04-23 12:04:46 +0100
commit57fd27cea85afca9f81dca76149f4b9775c1bdd6 (patch)
tree57a5448384e077b4c049e491f1540f273efbc128 /plugins/loopback.c
parent4a6714894c506c1f4be0031dbc08662fca6a240c (diff)
downloadconnman-57fd27cea85afca9f81dca76149f4b9775c1bdd6.tar.gz
connman-57fd27cea85afca9f81dca76149f4b9775c1bdd6.tar.bz2
connman-57fd27cea85afca9f81dca76149f4b9775c1bdd6.zip
Disable the inotify for hostname changes
Diffstat (limited to 'plugins/loopback.c')
-rw-r--r--plugins/loopback.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/loopback.c b/plugins/loopback.c
index deaaac27..72258120 100644
--- a/plugins/loopback.c
+++ b/plugins/loopback.c
@@ -39,6 +39,7 @@
#include <connman/plugin.h>
#include <connman/log.h>
+#if 0
static GIOChannel *inotify_channel = NULL;
static int hostname_descriptor = -1;
@@ -133,6 +134,7 @@ static void remove_watch(void)
close(fd);
}
+#endif
static int setup_hostname(void)
{
@@ -233,14 +235,14 @@ static int loopback_init(void)
setup_hostname();
- create_watch();
+ //create_watch();
return 0;
}
static void loopback_exit(void)
{
- remove_watch();
+ //remove_watch();
}
CONNMAN_PLUGIN_DEFINE(loopback, "Loopback device plugin", VERSION,