I have a java process that is started in background by a shell script. The script writes the PID of the process to a file, and later, a stop script can read the file and kill the process. When I start the process inside an xterm window, I find that the process dies when the window is closed. This happens only with xterm, and other shells dont seem to kill the process when they exit. I have some workarounds that involve modifying the shell script, but I need to do some kind of signal handling in the java code. Can any one tell me if it is possible to write a piece of java code, that makes sure the hangup signal is ignored.
Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."