Before fork, ensure cookie is reset so it's not shared between processes.
Version 2.02.81 -
===================================
+ Fix cookie sharing between forked lvm processes (2.02.80).
Version 2.02.80 - 10th January 2011
===================================
log_verbose("Executing: %s", _verbose_args(argv, buf, sizeof(buf)));
+ fs_unlock(); /* Flush oops and ensure cookie is not shared */
+
if ((pid = fork()) == -1) {
log_error("fork failed: %s", strerror(errno));
return 0;
sigaction(SIGCHLD, &act, NULL);
+ fs_unlock(); /* Flush oops and ensure cookie is not shared */
+
if ((pid = fork()) == -1) {
log_error("fork failed: %s", strerror(errno));
return -1;