< prev index next >
src/java.base/unix/native/libjava/childproc.h
Print this page
rev 54932 : [mq]: 8223777-posix_spawn-no-exec-error-alternate-impl
*** 99,108 ****
--- 99,109 ----
const char **argv;
int argc;
const char **envv;
const char *pdir;
int redirectErrorStream;
+ int sendAlivePing;
} ChildStuff;
/* following used in addition when mode is SPAWN */
typedef struct _SpawnInfo {
int nargv; /* number of argv array elements */
*** 112,121 ****
--- 113,129 ----
int dirlen; /* length of home directory string */
int nparentPathv; /* number of elements in parentPathv array */
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)
*/
const char * const *parentPathv;
< prev index next >