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

Add windows equivalent for getpid test

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-panama
    • repo-panama
    • tools

      getpid is a posix function that is not part of the C standard, so we can not use it to test with on Windows.

      We can add a Windows equivalent of this test calling GetCurrentProcess [1], and GetProcessId [2].

      [1] : https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getcurrentprocess
      [2] : https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getprocessid

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: