From owner-freebsd-java Mon Apr 27 14:35:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14562 for freebsd-java-outgoing; Mon, 27 Apr 1998 14:35:43 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from relay.hq.tis.com (relay.hq.tis.com [192.94.214.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14553 for ; Mon, 27 Apr 1998 14:35:40 -0700 (PDT) (envelope-from stevek@tis.com) Received: by relay.hq.tis.com; id RAA12623; Mon, 27 Apr 1998 17:32:36 -0400 (EDT) Received: from clipper.hq.tis.com(10.33.1.2) by relay.hq.tis.com via smap (4.0a) id xma012580; Mon, 27 Apr 98 17:31:36 -0400 Received: from mufasa.va.tis.com (mufasa.va.tis.com [192.168.10.18]) by clipper.hq.tis.com (8.7.5/8.7.3) with ESMTP id RAA10961 for ; Mon, 27 Apr 1998 17:29:05 -0400 (EDT) Received: from localhost (stevek@localhost) by mufasa.va.tis.com (8.8.7/8.8.7) with SMTP id RAA06895 for ; Mon, 27 Apr 1998 17:41:28 -0400 (EDT) (envelope-from stevek@mufasa.va.tis.com) Date: Mon, 27 Apr 1998 17:41:28 -0400 (EDT) From: Steve Kiernan To: freebsd-java@FreeBSD.ORG Subject: Re: JNI and signals... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 27 Apr 1998, Steve Kiernan wrote: > Well, I think I have a solution to using signals. > I opened a pipe and am having the signal handler write to one end > and the thread read from the other. The only problem is that > data is never making it to the other end of the pipe. A select > call never shows data pending on the read end of the pipe and > a blocking read never unblocks. Okay, I was being stupid with the select call (forgot to FD_SET the bit for the read descriptor), but blocking read still doesn't seem to unblock when there's data written to the pipe. Oh well, at least select-then-read is working properly. -- Steve Kiernan stevek@tis.com Trusted Information Systems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message