From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 6 14:30:02 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57A5F1065672 for ; Tue, 6 Sep 2011 14:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 155198FC1E for ; Tue, 6 Sep 2011 14:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p86EU1as020347 for ; Tue, 6 Sep 2011 14:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p86EU1q6020344; Tue, 6 Sep 2011 14:30:01 GMT (envelope-from gnats) Resent-Date: Tue, 6 Sep 2011 14:30:01 GMT Resent-Message-Id: <201109061430.p86EU1q6020344@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Renato Tambellini Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90B641065672 for ; Tue, 6 Sep 2011 14:21:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB908FC1A for ; Tue, 6 Sep 2011 14:21:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p86ELR8K059753 for ; Tue, 6 Sep 2011 14:21:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p86ELRDN059752; Tue, 6 Sep 2011 14:21:27 GMT (envelope-from nobody) Message-Id: <201109061421.p86ELRDN059752@red.freebsd.org> Date: Tue, 6 Sep 2011 14:21:27 GMT From: Renato Tambellini To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/160517: X pseudo-terminals are not registered in utmp and wtmp if parent tty session is closed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 14:30:02 -0000 >Number: 160517 >Category: misc >Synopsis: X pseudo-terminals are not registered in utmp and wtmp if parent tty session is closed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 06 14:30:01 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Renato Tambellini >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: FreeBSD devilbox.homeunix.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Aug 15 14:58:04 BRT 2011 root@devilbox.homeunix.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The pseudo-terminals (pts) allocated by xterm, rxvt and possibly others X terminal emulators are not registered in the utmp and wtmp files if the session of tty that called the X session is closed. Consequently the pts sessions not appears in the list of sessions of commands last(1), who(1), w(1) and others that depends of utmp and wtmp entries to run properly. >How-To-Repeat: 1) Make a login in the system tty console eg: ttyv0 2) Run the command: startx & exit 3) Open a xterm or rxvt using the window manager 4) Do commands last, who or w and verify that this session not appear in the list. >Fix: unknown >Release-Note: >Audit-Trail: >Unformatted: