aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-13 14:58:15 +0000
committernicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-03-13 14:58:15 +0000
commit0e81f75d59d11dc40b2c99e8e6e0e492f78370df (patch)
tree954e65603cafe885a7f4602b98d7dbe9322e023e
parent29afa7af12980254fe7f91c0c0543d4fe59b967b (diff)
downloadlcd4linux-0e81f75d59d11dc40b2c99e8e6e0e492f78370df.tar.gz
[lcd4linux @ 2004-03-13 14:58:15 by nicowallmeier]
Added clean termination of imond-connection (now correctly) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@398 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rwxr-xr-xplugin_imon.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugin_imon.c b/plugin_imon.c
index 4e705d5..695c38b 100755
--- a/plugin_imon.c
+++ b/plugin_imon.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_imon.c,v 1.5 2004/03/13 14:55:14 nicowallmeier Exp $
+/* $Id: plugin_imon.c,v 1.6 2004/03/13 14:58:15 nicowallmeier Exp $
*
* imond/telmond data processing
*
@@ -22,8 +22,8 @@
*
*
* $Log: plugin_imon.c,v $
- * Revision 1.5 2004/03/13 14:55:14 nicowallmeier
- * Added clean termination of imond-connection
+ * Revision 1.6 2004/03/13 14:58:15 nicowallmeier
+ * Added clean termination of imond-connection (now correctly)
*
* Revision 1.4 2004/03/03 04:44:16 reinelt
* changes (cosmetics?) to the big patch from Martin
@@ -452,7 +452,10 @@ int plugin_init_imon (void){
}
void plugin_exit_imon(void){
- if (fd>0) close(fd);
+ if (fd>0){
+ send_command(fd,"quit");
+ close(fd);
+ }
hash_destroy(&TELMON);
hash_destroy(&IMON);
}