src/jdk.packager/share/native/library/common/PosixPlatform.cpp
branchJDK-8200758-branch
changeset 56885 4c56efca06ca
parent 56854 aedce3eaaf17
child 56982 e094d5483bd6
equal deleted inserted replaced
56884:0b2da0fd5363 56885:4c56efca06ca
    36 #include <sys/types.h>
    36 #include <sys/types.h>
    37 #include <unistd.h>
    37 #include <unistd.h>
    38 #include <sys/sysctl.h>
    38 #include <sys/sysctl.h>
    39 #include <sys/file.h>
    39 #include <sys/file.h>
    40 #include <sys/stat.h>
    40 #include <sys/stat.h>
       
    41 #ifdef LINUX
       
    42 #include <sys/wait.h>
       
    43 #endif
    41 #include <errno.h>
    44 #include <errno.h>
    42 #include <limits.h>
    45 #include <limits.h>
    43 #include <pwd.h>
    46 #include <pwd.h>
    44 #include <iostream>
    47 #include <iostream>
    45 #include <algorithm>
    48 #include <algorithm>
   370 
   373 
   371     int status = 0;
   374     int status = 0;
   372     pid_t wpid = 0;
   375     pid_t wpid = 0;
   373 
   376 
   374 #ifdef LINUX
   377 #ifdef LINUX
   375     wait();
   378     wpid = wait(&status);
   376 #endif
   379 #endif
   377 #ifdef MAC
   380 #ifdef MAC
   378     wpid = wait(&status);
   381     wpid = wait(&status);
   379 #endif
   382 #endif
   380 
   383