< prev index next >

src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c

Print this page
rev 59104 : imported patch serviceability

@@ -28,18 +28,10 @@
 #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;

@@ -98,11 +90,11 @@
         *p++ = '\0';
         p = skipWhitespace(p);
     }
     argv[i] = NULL;  /* NULL terminate */
 
-    if ((pid = FORK()) == 0) {
+    if ((pid = fork()) == 0) {
         /* Child process */
         int i;
         long max_fd;
 
         /* close everything */
< prev index next >