Make sure we remove pid file in monitor before manager exits.

This commit is contained in:
Neil Brown 2008-07-12 20:27:42 +10:00
parent a35c070bcd
commit 207aac36d5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}