< prev index next >

modules/jdk.packager/src/main/native/library/common/PosixPlatform.cpp

Print this page

        

@@ -44,10 +44,11 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <sys/sysctl.h>
 #include <sys/file.h>
 #include <sys/stat.h>
+#include <sys/wait.h>
 #include <errno.h>
 #include <limits.h>
 #include <pwd.h>
 #include <iostream>
 #include <algorithm>

@@ -378,11 +379,11 @@
 
     int status = 0;
     pid_t wpid = 0;
 
 #ifdef LINUX
-    wait();
+    wait(&status);
 #endif
 #ifdef MAC
     wpid = wait(&status);
 #endif
 
< prev index next >