Unix Signal Handling

Question:
Is there a way in Java to handle Unix signals(i.e. to trap a Control C signal)?

Answer:
You can handle Unix signals only by writing native code. However, theJava virtual machine itself uses various signals for its own purposes,and providing your own signal handlers will usually break the virtualmachine. It is highly recommended that you not install your own signalhandlers.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: