Description of problem: Logout doesn't complete because dmeventd doesn't release terminal after activate a LV on the remote terminal. Version-Release number of selected component: device-mapper-1.02.07-2.0.RHEL4 (RHEL4 U4 pre-beta) How reproducible: Always Steps to Reproduce: 1. ssh login to a host. And execute the following commands on the remote terminal. 2. Prepare a VG which has more than 2 PVs. 3. Create a mirror LV from the VG. # lvcreate -L 12m -n lv0 -m 1 vg0 4. Logout from the host. Actual results: Shell prompt doesn't return. Expected results: Shell prompt should return. Additional info: In the dmeventd/dmeventd.c:daemonize(), related codes seems to be inactivated. ------------------------------------------------------------ static int daemonize(void) { setsid(); if (chdir("/")) return -EXIT_CHDIR_FAILURE; /* FIXME: activate again after we're done with tracing. if ((close(STDIN_FILENO) < 0) || (close(STDOUT_FILENO) < 0) || (close(STDERR_FILENO) < 0)) return -EXIT_DESC_CLOSE_FAILURE; */ return 0; } ------------------------------------------------------------
Created attachment 130409 [details] Patch to fix problem
included in 1.02.07-3.0
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0434.html