From 207aac36d50e7d2c48766667bf4bf42c08bc0ec2 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:42 +1000 Subject: Make sure we remove pid file in monitor before manager exits. --- monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index fda3fc0..46d5e0a 100644 --- a/monitor.c +++ b/monitor.c @@ -445,9 +445,9 @@ static int wait_and_act(struct supertype *container, int nowait) if (fd >= 0 || errno != EBUSY) { /* OK, we are safe to leave */ dprintf("no arrays to monitor... exiting\n"); + remove_pidfile(container->devname); exit_now = 1; signal_manager(); - remove_pidfile(container->devname); exit(0); } } -- cgit