src/hotspot/os/windows/os_windows.cpp
changeset 52109 101c2b6eacbe
parent 51376 181e6a03249b
child 52302 912b79d983d9
equal deleted inserted replaced
52108:9c84227836d4 52109:101c2b6eacbe
  5252   SetEvent(_ParkEvent);
  5252   SetEvent(_ParkEvent);
  5253 }
  5253 }
  5254 
  5254 
  5255 // Run the specified command in a separate process. Return its exit value,
  5255 // Run the specified command in a separate process. Return its exit value,
  5256 // or -1 on failure (e.g. can't create a new process).
  5256 // or -1 on failure (e.g. can't create a new process).
  5257 int os::fork_and_exec(char* cmd) {
  5257 int os::fork_and_exec(char* cmd, bool use_vfork_if_available) {
  5258   STARTUPINFO si;
  5258   STARTUPINFO si;
  5259   PROCESS_INFORMATION pi;
  5259   PROCESS_INFORMATION pi;
  5260   DWORD exit_code;
  5260   DWORD exit_code;
  5261 
  5261 
  5262   char * cmd_string;
  5262   char * cmd_string;