From owner-freebsd-java Thu Dec 27 20:11:39 2001 Delivered-To: freebsd-java@freebsd.org Received: from daedalus.cs.brandeis.edu (daedalus.cs.brandeis.edu [129.64.3.179]) by hub.freebsd.org (Postfix) with ESMTP id AD1C137B417 for ; Thu, 27 Dec 2001 20:11:36 -0800 (PST) Received: from localhost (meshko@localhost) by daedalus.cs.brandeis.edu (8.9.3/8.9.3) with ESMTP id XAA19891 for ; Thu, 27 Dec 2001 23:11:34 -0500 Date: Thu, 27 Dec 2001 23:11:33 -0500 (EST) From: Mikhail Kruk To: Subject: weird behavior Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This happens both in linux 1.3.0 and patchset 5. I think it weird enough to turn out to be interesting to someone. I have an application which listens on socket and also takes commands from system.in. So it has a thread which does accept() on a server socket and also thread which does readLine() on System.in. This combination works fine until I login as one user and then su to another and start the program. If I do that, only the console thread (the one that reads lines from system.in) works -- the socket never returns from accept() call. ...and yes, I did waste 3 hours on this stupidity :( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message