Bug 192870 - [RHEL4 U4 beta] LVM2 mirror: dmeventd doesn't release terminal.
Summary: [RHEL4 U4 beta] LVM2 mirror: dmeventd doesn't release terminal.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: device-mapper
Version: 4.4
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Alasdair Kergon
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 181411 186476
TreeView+ depends on / blocked
 
Reported: 2006-05-23 18:22 UTC by Kiyoshi Ueda
Modified: 2013-04-02 23:51 UTC (History)
8 users (show)

Fixed In Version: RHBA-2006-0434
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:25:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to fix problem (610 bytes, patch)
2006-06-02 16:19 UTC, Jonathan Earl Brassow
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0434 0 normal SHIPPED_LIVE device-mapper bug fix and enhancement update 2006-08-09 04:00:00 UTC

Description Kiyoshi Ueda 2006-05-23 18:22:32 UTC
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;
}
------------------------------------------------------------

Comment 1 Jonathan Earl Brassow 2006-06-02 16:19:58 UTC
Created attachment 130409 [details]
Patch to fix problem

Comment 4 Alasdair Kergon 2006-07-05 17:59:49 UTC
included in 1.02.07-3.0

Comment 8 Red Hat Bugzilla 2006-08-10 21:25:12 UTC
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



Note You need to log in before you can comment on or make changes to this bug.