src/jdk.packager/share/native/library/common/PosixPlatform.cpp
branchJDK-8200758-branch
changeset 56885 4c56efca06ca
parent 56854 aedce3eaaf17
child 56982 e094d5483bd6
--- a/src/jdk.packager/share/native/library/common/PosixPlatform.cpp	Mon Sep 17 09:28:19 2018 -0400
+++ b/src/jdk.packager/share/native/library/common/PosixPlatform.cpp	Mon Sep 17 09:29:21 2018 -0400
@@ -38,6 +38,9 @@
 #include <sys/sysctl.h>
 #include <sys/file.h>
 #include <sys/stat.h>
+#ifdef LINUX
+#include <sys/wait.h>
+#endif
 #include <errno.h>
 #include <limits.h>
 #include <pwd.h>
@@ -372,7 +375,7 @@
     pid_t wpid = 0;
 
 #ifdef LINUX
-    wait();
+    wpid = wait(&status);
 #endif
 #ifdef MAC
     wpid = wait(&status);