From 0e81f75d59d11dc40b2c99e8e6e0e492f78370df Mon Sep 17 00:00:00 2001 From: nicowallmeier Date: Sat, 13 Mar 2004 14:58:15 +0000 Subject: [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 --- plugin_imon.c | 11 +++++++---- 1 file 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); } -- cgit v1.2.3