| Other | Other | Other |
|---|---|---|
| 1.4.0_04 04Fixed | 1.4.1_03Fixed | 1.4.2Fixed |
|
Duplicate :
|
|
|
Duplicate :
|
|
|
Duplicate :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
If I start a java process in background using bourne shell and hit CTRL-C
on the shell prompt, java process dies.
Here is how to reproduce
-- have a bourne shell by typing /bin/sh
-- do javac a.java
a.java is listed below
-- run a by typing java a &
This will return to shell prompt because process was started in background.
Now, hit CTRL-C, java process will die.
--------------
a.java
public class a {
public static void main(String[] args) {
while (true) {
System.out.println("I am in while loop");
}
}
}
---------------------------
Please make a note that it happens only with java 1.4 and bourne shell.
Here is the output of java -version command
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
|