Make sure we remove pid file in monitor before manager exits.
This commit is contained in:
parent
a35c070bcd
commit
207aac36d5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue