1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-26 14:04:15 +03:00

Fix libdevmapper event daemon_running status.

This commit is contained in:
Alasdair Kergon 2006-01-27 20:46:06 +00:00
parent 77565f7ee4
commit ac8823cdcf

View File

@ -250,6 +250,13 @@ static int start_daemon(void)
break;
}
}
/*
* Sometimes, a single process may perform multiple calls
* that result in a daemon starting and exiting. If we
* don't reset this, the second (or greater) time the daemon
* is started will cause this logic not to work.
*/
daemon_running = 0;
} else {
signal(SIGUSR1, SIG_IGN); /* don't care about error */