Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 1998 17:41:28 -0400 (EDT)
From:      Steve Kiernan <stevek@tis.com>
To:        freebsd-java@FreeBSD.ORG
Subject:   Re: JNI and signals...
Message-ID:  <Pine.BSF.3.96.980427173915.6122C-100000@mufasa.va.tis.com>
In-Reply-To: <Pine.BSF.3.96.980427172531.6122B-100000@mufasa.va.tis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980427173915.6122C-100000>