13 messages in net.java.dev.jna.usersRe: [jna-users] handling serial port ...
FromSent OnAttachments
zamekMar 11, 2008 11:58 am 
Marc RavensbergenMar 11, 2008 12:24 pm 
zamekMar 11, 2008 1:47 pm 
Timothy WallMar 12, 2008 5:38 am 
zamekMar 12, 2008 2:34 pm 
Timothy WallMar 12, 2008 4:36 pm 
zamekMar 13, 2008 1:12 pm 
Timothy WallMar 13, 2008 5:04 pm.java
zamekMar 14, 2008 7:26 am 
Timothy WallMar 14, 2008 8:20 am 
zamekMar 14, 2008 8:51 am 
Timothy WallMar 17, 2008 6:58 am 
zamekMar 17, 2008 11:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] handling serial port with jna on linuxActions...
From:zamek (zam@vili.pmmf.hu)
Date:Mar 17, 2008 11:22:30 am
List:net.java.dev.jna.users

Hello Timothy Ezzel a dátummal: Monday 17 March 2008 14.58.56 Timothy Wall ezt írta:

It's possible that the VM itself is playing with signal handlers, but I don't know why it would use SIGIO. The VM flag "-Xrs" reduces the use of signal handlers, you might try that.

Also, if you run the VM under strace you might find out where and when it calls "signal" or "sigaction".

You might also try "signal" (the simpler form of "sigaction") to see if the behavior is any different.

I checked it, but nothing happened, but document said:

-Xrs Reduce usage of operating-system signals by Java virtual machine (JVM).

Sun's JVM catches signals to implement shutdown hooks for abnormal JVM termination. The JVM uses SIGHUP, SIGINT, and SIGTERM to initiate the running of shutdown hooks. The JVM uses SIGQUIT to perform thread dumps.

Applications that embed the JVM frequently need to trap signals like SIGINT or SIGTERM, and in such cases there is the possibility of interference between the applications' signal handlers and the JVM shutdown-hooks facility.

To avoid such interference, the -Xrs option can be used to turn off the JVM shutdown-hooks feature. When -Xrs is used, the signal masks for SIGINT, SIGTERM, SIGHUP, and SIGQUIT are not changed by the JVM, and signal handlers for these signals are not installed.

So it isn't sense SIGIO dignal.