From owner-freebsd-stable@FreeBSD.ORG Tue Sep 23 02:47:30 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05830106564A for ; Tue, 23 Sep 2008 02:47:30 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 87CE08FC1C for ; Tue, 23 Sep 2008 02:47:29 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so464762eyi.7 for ; Mon, 22 Sep 2008 19:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=wPGxQt11cmu0IWqBzquOStUqDmvA5EoVeekuIkU+pwo=; b=iv9SSLrBAVZbWj/eGLMwm2C1aBT5JtoNSOb9AYgkkIOVvRHMMw8luxEl2DfSzh+jCD cor+YhpXN86dItxz98Tnw8Edgwwh/KrUKZf7janJIJ9EImhiBURO8VEI7BoevO3RwApS 54e3hx0lf/YA92Np2RExMypvor/pOIFVef2U0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IIAGiEGi69aIJuyBSCUxm65ojogpOSWD7cN3gjOmb/4UI29mSoxU9CeUqpA2NF1lBN nwEX7JiMwY8cqMVrc8M3F8S0XE9DpoRpih0gAGyLNEaqF+lWZ2RQqHmwcpFJpkKY89Wg DBl1l8xFcXbFR3ppi1oQse89xWgUPP5gqa2kE= Received: by 10.102.253.6 with SMTP id a6mr3292075mui.92.1222138047557; Mon, 22 Sep 2008 19:47:27 -0700 (PDT) Received: by 10.103.231.14 with HTTP; Mon, 22 Sep 2008 19:47:27 -0700 (PDT) Message-ID: Date: Mon, 22 Sep 2008 23:47:27 -0300 From: "Carlos A. M. dos Santos" To: "Jeff Blank" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080910203445.GA8561@mr-happy.com> Cc: freebsd-stable@freebsd.org Subject: Re: can't see non-root writes to /dev/console X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2008 02:47:30 -0000 On Wed, Sep 10, 2008 at 10:54 PM, Carlos A. M. dos Santos wrote: > On Wed, Sep 10, 2008 at 5:34 PM, Jeff Blank wrote: >> I just upgraded a RELENG_7 (amd64) box from 20080714 to "latest" >> (which seems to be from a few days ago--no changes from Monday >> morning's csup to today's) and can no longer see the effect of writing >> to /dev/console as non-root. When I log in using xdm, my user owns >> /dev/console, mode 0622 (-rw--w--w-), and I start an 'xterm -C'. But >> when I, for example, >> >> echo foo > /dev/console >> >> I see nothing in the console xterm. No error messages, and echo exits >> 0. If I su to root and do the same, I get 'foo' in the same console >> xterm. Syslog messages to /dev/console also appear, of course. All >> the above applies to xconsole as well, not just xterm. I did >> recompile xterm from 20080616 ports, but it didn't fix the issue >> (didn't expect it to, as xterm clearly has no trouble attaching and >> reading). So my echo is getting lost in the kernel, I guess. >> >> Known problem? Intentional change? Something else? > > I have seen this problem since 6.x times and still on 7.x. I also > noticed that if I send something to the console after xconsole starts > then I can sned messages as an ordinary user. My workaround was > modifying the Xsetup_0 script (I used xdm for login), adding a line > with > > (sleep 3; date >> "$dev_console") & > > just after starting xconsole. > > I didn't have time to set up a machine with 8-CURRENT yet, so I could > not check if the new mp-safe tty implementation fixes this, either > intentionally or by a fortunate side effect. > > -- > cd /usr/ports/sysutils/life > make clean What happens if you use xconsole -f /dev/console ? -- cd /usr/ports/sysutils/life make clean