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

use waitpid instead of wait

XMLWordPrintable

      The code in PosixPlatform.cpp:

          //TODO Use waitpid instead of wait
      #ifdef LINUX
          wait();
      #endif
      #ifdef MAC
          wpid = wait(&status);
      #endif

      would be more correct to be using waitpid instead of wait. I didn't have good luck using waitpid and there is no good reason at the moment to spin up two processes so wait works, however waitpid is more correct.

            vdrozdov Victor Drozdov (Inactive)
            cbensen Chris Bensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: