@@ -1560,11 +1560,15 @@ #elif defined(SOLARIS) tty->print ("/usr/bin/sh -c "); #endif tty->print_cr("\"%s\"...", cmd); +#if defined(LINUX) + if (os::vfork_and_exec(cmd) < 0) { +#else if (os::fork_and_exec(cmd) < 0) { +#endif tty->print_cr("os::fork_and_exec failed: %s (%s=%d)", os::strerror(errno), os::errno_name(errno), errno); } } }