📄 index.html
字号:
<HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Author" CONTENT="Kevin Hester"> <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; Linux 2.0.32 i586) [Netscape]"> <META NAME="Keywords" CONTENT="UNIX signals Java library"> <TITLE>JavaSignals - Signal support for Linux</TITLE></HEAD><BODY BACKGROUND="http://www.interstice.com/~kevinh/stone-tile.gif" NOSAVE><H2>What is JavaSignals?</H2>Java Signals is a library which provides support for catching 'signals.' Signals are thrown by most UNIX flavored operating systems. The currentversion of Java Signals has been developed for Linux, but I suspect itwould work for other UNIX flavors as well. <P>It was originally written for two purposes:<UL><LI>I wanted to catch SIGHUP so that I could extend <A HREF="../../linuxcomm.html">JCL</A>to handle break interrupts.</LI><LI>I'm tired of having my Java apps killed without any notification from theOS. I think it is dumb not to provide this functionality in the baseJava distribution - but they seem to only care about Solaris. ;-)</LI></UL><H2>What is the current JavaSignals version?</H2>The current version of Java Signals is 1.0.<H2>What is needed to use JavaSignals?</H2><UL><LI>A 2.0 or later Linux kernel. See <A HREF="http://www.linux.org">linux.org</A>for all things Linux.</LI><LI>Java 1.1 or later. See the Java Linux web <A HREF="http://www.blackdown.org/java-linux.html">page</A>for downloads.</LI><LI>JavaSignals.zip from <A HREF="JavaSignals.zip">this</A> site.</LI></UL><H2>How does one install JavaSignals?</H2>The following instructions are basically untested, please send <A HREF="mailto:kevinh@acm.org">kevinh@acm.org</A>email if they work for you or if you encounter problems. Please sendme any improvements you make to this library.<UL><LI>Expand the JavaSignals.zip file - this release includes source and binaries.</LI><LI>Add JavaSignals to your CLASSPATH.</LI><UL> <TT>export CLASSPATH=$CLASSPATH:<yourexpandeddir></TT></UL><LI>Place libSignal.so in your LD_LIBRARY_PATH or copy it to your jdk/lib directory. This library contains the native code needed for signal support.</LI><UL> </UL><LI>Test your installation by running the simple Test application:</LI><UL><TT>java kh.signal.SignalTest</TT></UL>This test will wait for you to send a HUP signal to the process. To send a HUP signal type 'kill -HUP <processnumber>'<LI>Add signal support to your application. You will need to have someclass implement kh.signal.SignalListener. Once you have an instanceof this class, call kh.signal.SignalManager.addListener(yourObject)</LI></UL><I>Please</I> send me an <A HREF="mailto:kevinh@acm.org">email</A> if thisworks for you - there have been many downloads, but not much feedback.<H2>Who wrote this stuff?</H2><A HREF="http://www.interstice.com/~kevinh">Kevin Hester</A> created/maintainsJavaSignals.Bernhard Bablok contributed a fix for the problem of JavaSignals breaking RMI registry.<P><HR WIDTH="100%"><BR><FONT SIZE=+1>Page maintained by Kevin Hester (<A HREF="mailto:kevinh@acm.org">kevinh@acm.org</A>). Last updated 3/29/1999.</FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -