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

subProcess.waitFor() never returns on win32.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.3
    • core-libs
    • 1.2beta4
    • x86
    • windows_95
    • Not verified



      Name: rlT66838 Date: 07/18/97


      Under win32, have the JDK1.1.3 Runtime.exec() any subprocess,
      then have subProcess.waitFor() executed in an attempt to wait for
      the subprocess to finish. Perhaps it's only my but code I doubt
      it. When I attempted this it either hung, or crashed windows 95.

         private void ProcessInput()
         {
            Process subProcess;
            Runtime thisRuntime = Runtime.getRuntime();

               try
               {
                  subProcess = thisRuntime.exec(CommandLine);
                  subProcessOutput = new BufferedReader( new InputStreamReader(subProc
      ess.getInputStream()) );

                  subProcess.waitFor();
      }

               catch(InterruptedException thisException)
               {
                  Daemon.SysFatalError(thisException, "ProcessInput() exec");
               }
          }

      This isn't the entire source, but what I believe is relevant to the problem.
      Please contact me if anyone would like to see the whole package.

      ======================================================================

            hongzh Hong Zhang
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: