From owner-freebsd-current Tue Jul 3 6:19:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D1EEC37B405 for ; Tue, 3 Jul 2001 06:19:45 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f63DIVH52094; Tue, 3 Jul 2001 16:18:31 +0300 (EEST) (envelope-from ru) Date: Tue, 3 Jul 2001 16:18:31 +0300 From: Ruslan Ermilov To: "Andrey A. Chernov" Cc: Bruce Evans , Alfred Perlstein , current@FreeBSD.ORG Subject: Re: TIOCSCTTY Message-ID: <20010703161831.D39090@sunbay.com> Mail-Followup-To: "Andrey A. Chernov" , Bruce Evans , Alfred Perlstein , current@FreeBSD.ORG References: <20010702111904.O84523@sneakerz.org> <20010703152523.C39090@sunbay.com> <20010703165058.A25874@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010703165058.A25874@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Jul 03, 2001 at 04:50:59PM +0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jul 03, 2001 at 04:50:59PM +0400, Andrey A. Chernov wrote: > On Tue, Jul 03, 2001 at 15:25:24 +0300, Ruslan Ermilov wrote: > > On Tue, Jul 03, 2001 at 07:53:08PM +1000, Bruce Evans wrote: > > > On Mon, 2 Jul 2001, Alfred Perlstein wrote: > > > > > > > * Ruslan Ermilov [010702 10:51] wrote: > > > > > Hi! > > > > > > > > > > Could someone please explain why the following code snippet > > > > > does not work anymore with the "/dev/console" argument? > > > > > > > > > > # ./tiocsctty /dev/console > > > > > tiocsctty: ioctl(/dev/console, TIOCSCTTY): Operation not permitted > > > > > > This still works here. Perhaps another process has aquired /dev/console > > > as its controlling terminal. > > > > > Weird. I figured out what causes this, it's moused(8). I have inserted > > some debug code into it to see what's going on: > > It sounds like moused needs to be fixed to drop its control terminal. > But the daemon(3) performs this function, and forked moused(8) runs without the controlling tty. Further investigation shows, that after running and killing this small program (from /etc/rc.local), I can't get a functional moused(8). It runs OK, and when with -f and -d shows mouse events, but does not show mouse cursor, etc. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message