src/hotspot/share/utilities/vmError.cpp
changeset 52109 101c2b6eacbe
parent 51834 5dd9f3ac52a4
child 52115 9e6158f12068
equal deleted inserted replaced
52108:9c84227836d4 52109:101c2b6eacbe
  1563 #elif defined(SOLARIS)
  1563 #elif defined(SOLARIS)
  1564     tty->print  ("/usr/bin/sh -c ");
  1564     tty->print  ("/usr/bin/sh -c ");
  1565 #endif
  1565 #endif
  1566     tty->print_cr("\"%s\"...", cmd);
  1566     tty->print_cr("\"%s\"...", cmd);
  1567 
  1567 
  1568     if (os::fork_and_exec(cmd) < 0) {
  1568     if (os::fork_and_exec(cmd, true) < 0) {
  1569       tty->print_cr("os::fork_and_exec failed: %s (%s=%d)",
  1569       tty->print_cr("os::fork_and_exec failed: %s (%s=%d)",
  1570                      os::strerror(errno), os::errno_name(errno), errno);
  1570                      os::strerror(errno), os::errno_name(errno), errno);
  1571     }
  1571     }
  1572   }
  1572   }
  1573 }
  1573 }