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

(process) Various improvements to Windows process creation code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u60
    • 6
    • core-libs
    • generic
    • windows_95, windows_98

      src/windows/native/java/lang/ProcessImpl_md.c has a number of minor
      deficiencies, especially in selectProcessFlags.

      selectProcessFlag doesn't do enough error checking. In particular,
      the return code from SearchPath is not checked, and an open on an
      uninitialized buffer is performed. If you have very bad luck, this will
      hang if the uninitialized buffer happens to contain the file name of a
      named pipe without a writer, for example.

      Instead of selecting a single process creation flag, the logic should
      be more sophisticated; different actions should be taken for .com files.
      There may also be a need to take different action for 64-bit windows
      executables.

      Even with the fix for 5005176, 16-bit console applications will appear to
      produce no output when launched from detached Java processes on NT.
      This should be fixed.

            uta Alexey Utkin (Inactive)
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: