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

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

plugin_imon.c

index 7debb54b9114ef0229e8745d656fc35210e1a15d..4e705d5b98d7c36d1be9a2afb113df80822f6f63 100755 (executable)
@@ -1,4 +1,4 @@
-/* $Id: plugin_imon.c,v 1.4 2004/03/03 04:44:16 reinelt Exp $
+/* $Id: plugin_imon.c,v 1.5 2004/03/13 14:55:14 nicowallmeier Exp $
  *
  * imond/telmond data processing
  *
@@ -22,6 +22,9 @@
  *
  *
  * $Log: plugin_imon.c,v $
+ * Revision 1.5  2004/03/13 14:55:14  nicowallmeier
+ * Added clean termination of imond-connection
+ *
  * Revision 1.4  2004/03/03 04:44:16  reinelt
  * changes (cosmetics?) to the big patch from Martin
  * hash patch un-applied
@@ -448,8 +451,8 @@ int plugin_init_imon (void){
  return 0;
 }
 
-void plugin_exit_imon(void) 
-{
+void plugin_exit_imon(void){
+  if (fd>0) close(fd);
   hash_destroy(&TELMON);
   hash_destroy(&IMON);
 }