diff options
author | nicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-13 14:55:14 +0000 |
---|---|---|
committer | nicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-13 14:55:14 +0000 |
commit | 29afa7af12980254fe7f91c0c0543d4fe59b967b (patch) | |
tree | 56b09e73f54d22dde729368620683e045307467e | |
parent | 213f9bbd8aed7fbd3e05d8ff8243a2481a0ff664 (diff) | |
download | lcd4linux-29afa7af12980254fe7f91c0c0543d4fe59b967b.tar.gz |
[lcd4linux @ 2004-03-13 14:55:14 by nicowallmeier]
Added clean termination of imond-connection
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@397 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rwxr-xr-x | plugin_imon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugin_imon.c b/plugin_imon.c index 7debb54..4e705d5 100755 --- a/plugin_imon.c +++ b/plugin_imon.c @@ -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); } |