< prev index next >
src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c
Print this page
rev 59104 : imported patch serviceability
*** 28,45 ****
#include <string.h>
#include <ctype.h>
#include "sys.h"
#include "util.h"
- #if defined(LINUX) || defined(_ALLBSD_SOURCE) || defined(AIX)
- /* Linux, BSD, AIX */
- #define FORK() fork()
- #else
- /* Solaris (make sure we always get the POSIX-specified behavior) */
- #define FORK() fork1()
- #endif
-
static char *skipWhitespace(char *p) {
while ((*p != '\0') && isspace(*p)) {
p++;
}
return p;
--- 28,37 ----
*** 98,108 ****
*p++ = '\0';
p = skipWhitespace(p);
}
argv[i] = NULL; /* NULL terminate */
! if ((pid = FORK()) == 0) {
/* Child process */
int i;
long max_fd;
/* close everything */
--- 90,100 ----
*p++ = '\0';
p = skipWhitespace(p);
}
argv[i] = NULL; /* NULL terminate */
! if ((pid = fork()) == 0) {
/* Child process */
int i;
long max_fd;
/* close everything */
< prev index next >