Xymon Mailing List Archive search

Shared memory and semaphores?

2 messages in this thread

list David Gore · Tue, 18 Jul 2006 12:43:02 +0000 ·
When you shutdown hobbit, should the shared memory and semaphores be 
released?  They do not appear to be released on my Hobbit server running 
Fedora Core 5.

~David
list Henrik Størner · Tue, 18 Jul 2006 16:49:00 +0200 ·
▸ quoted from David Gore
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.
▸ quoted from David Gore
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);