]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2004-03-13 14:58:15 by nicowallmeier]
authornicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 13 Mar 2004 14:58:15 +0000 (14:58 +0000)
committernicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 13 Mar 2004 14:58:15 +0000 (14:58 +0000)
Added clean termination of imond-connection (now correctly)

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@398 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_imon.c

index 4e705d5b98d7c36d1be9a2afb113df80822f6f63..695c38b5ecc8cd2fd73ef3809c310b68064c09df 100755 (executable)
@@ -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);
 }