From owner-freebsd-java Thu Jan 28 00:21:45 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA06293 for freebsd-java-outgoing; Thu, 28 Jan 1999 00:21:45 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from inet-tsb.toshiba.co.jp (inet-tsb.toshiba.co.jp [202.33.96.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA06288 for ; Thu, 28 Jan 1999 00:21:43 -0800 (PST) (envelope-from hashi@csl.rdc.toshiba.co.jp) Received: from tis2.tis.toshiba.co.jp by inet-tsb.toshiba.co.jp (8.8.8/3.3W9-04/12/95) id RAA27609; Thu, 28 Jan 1999 17:19:00 +0900 (JST) Received: from mx.toshiba.co.jp by tis2.tis.toshiba.co.jp (8.8.4+2.7Wbeta4/3.3W9-95082317) id RAA16323; Thu, 28 Jan 1999 17:19:00 +0900 (JST) Received: from tis10.tis.toshiba.co.jp by toshiba.co.jp (8.7.1+2.6Wbeta4/3.3W9-TOSHIBA-GLOBAL SERVER) id RAA17752; Thu, 28 Jan 1999 17:18:59 +0900 (JST) Received: from mailhost.csl.rdc.toshiba.co.jp ([133.196.71.13]) by tis10.tis.toshiba.co.jp (5.67+1.6W/6.4J.6-MHS-CNTML-R1) id AA17178; Thu, 28 Jan 99 17:18:58 JST Received: from hakobe.csl.rdc.toshiba.co.jp (swg-dcl-181.csl.rdc.toshiba.co.jp [133.196.75.181]) by mailhost.csl.rdc.toshiba.co.jp (8.9.0/8.9.0) with ESMTP id RAA18097; Thu, 28 Jan 1999 17:18:58 +0900 (JST) From: hashi@csl.rdc.toshiba.co.jp (Mikio Hashimoto) Message-Id: <199901280818.RAA18097@mailhost.csl.rdc.toshiba.co.jp> Date: Thu, 28 Jan 1999 17:18:13 +0900 (JST) X-Mailer: cmail [version 2.59.11] To: freebsd-java@FreeBSD.ORG Subject: signal handling in FreeBSD Java Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear freebsd-java reflector members I'd like to ask a question about signal handling in freebsd JDK. I'm developing a program that uses JNI and asynchronous IO. The program handles asynchronous input from a special socket interface through JNI, as shown in figure below. On arriving an asynchronous input, a signal SIGUSR1 is issued from the socket interface to the java process, then a preregistered signal handler of the java process is called. The handler invokes particular input method in user java library. User Java Library(with awt) ------------------------------------------- freebsd-jdk 1.1.7 Java VM +-------------------------------- | Native Method (written in C ) -----------+--------------------------------- IO,etc | special socket I/F for IEEE 1394 Free BSD kernel This program well worked for simple test program without awt widget library. But once GUI program with awt applied to the program, the java process frequently crashes or hangs up. Sometimes following messages can be seen. 1) X11TransSocketINETConnect: Can't connect errno=4 2) Warning: select failed I guess the message 1) tells that some signals(probably my socket signal) disrupted socket operation in X windows system. The error number four corresponds to the EINTR error. Is it right? As for second message, actually I use select system call for asynchronous input handling. Above explanation is very simplified one. I'm afraid that using select() system call in native method disrupts java process on working for normal class loading or networking. Does anyone have suggestion about my problem? Best Regards. -------- Mikio Hashimoto Laboratory I, Communication and Information Laboratories, Toshiba R&D Center fax +81-44-520-1806 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message