Xymon Mailing List Archive search

Shared memory and semaphores?

list Henrik Størner
Tue, 18 Jul 2006 16:49:00 +0200
Message-Id: <user-2fa920f1dd2a@xymon.invalid>

On Tue, Jul 18, 2006 at 12:43:02PM +0000, David Gore wrote:
When you shutdown hobbit, should the shared memory and semaphores be 
released?
Yes.
They do not appear to be released on my Hobbit server running 
Fedora Core 5.
Forgot the last one. Patch attached.


Regards,
Henrik

-------------- next part --------------
--- hobbitd/hobbitd.c	2006/07/15 19:54:16	1.248
+++ hobbitd/hobbitd.c	2006/07/18 14:46:08
@@ -25,7 +25,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: hobbitd.c,v 1.248 2006/07/15 19:54:16 henrik Exp $";
+static char rcsid[] = "$Id: hobbitd.c,v 1.249 2006/07/18 14:46:05 henrik Exp $";
 
 #include <limits.h>
 #include <sys/time.h>
@@ -4541,6 +4541,7 @@
 	close_channel(noteschn, CHAN_MASTER);
 	close_channel(enadischn, CHAN_MASTER);
 	close_channel(clientchn, CHAN_MASTER);
+	close_channel(clichgchn, CHAN_MASTER);
 
 	save_checkpoint();
 	unlink(pidfile);