Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4784574

background java process dies by CTRL-C on starting shell

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      04
    • CPU:
      x86, sparc
    • OS:
      generic, linux, solaris_7, solaris_8, solaris_9

      Backports

        Description

        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)



          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: