src/java.base/unix/native/libjava/childproc.h
changeset 55240 57b93b113ec0
parent 47216 71c04702a3d5
--- a/src/java.base/unix/native/libjava/childproc.h	Wed Jun 05 14:07:14 2019 -0400
+++ b/src/java.base/unix/native/libjava/childproc.h	Wed Jun 05 09:12:45 2019 +0200
@@ -101,6 +101,7 @@
     const char **envv;
     const char *pdir;
     int redirectErrorStream;
+    int sendAlivePing;
 } ChildStuff;
 
 /* following used in addition when mode is SPAWN */
@@ -114,6 +115,13 @@
     int parentPathvBytes; /* total number of bytes in parentPathv array */
 } SpawnInfo;
 
+/* If ChildStuff.sendAlivePing is true, child shall signal aliveness to
+ * the parent the moment it gains consciousness, before any subsequent
+ * pre-exec errors could happen.
+ * This code must fit into an int and not be a valid errno value on any of
+ * our platforms. */
+#define CHILD_IS_ALIVE      65535
+
 /**
  * The cached and split version of the JDK's effective PATH.
  * (We don't support putenv("PATH=...") in native code)