src/hotspot/os/solaris/os_solaris.cpp
changeset 58548 430b9a492a05
parent 58196 cea6839598e8
child 58654 562bf1878089
equal deleted inserted replaced
58547:7d6ba925590f 58548:430b9a492a05
  4426 }
  4426 }
  4427 
  4427 
  4428 void os::pause() {
  4428 void os::pause() {
  4429   char filename[MAX_PATH];
  4429   char filename[MAX_PATH];
  4430   if (PauseAtStartupFile && PauseAtStartupFile[0]) {
  4430   if (PauseAtStartupFile && PauseAtStartupFile[0]) {
  4431     jio_snprintf(filename, MAX_PATH, PauseAtStartupFile);
  4431     jio_snprintf(filename, MAX_PATH, "%s", PauseAtStartupFile);
  4432   } else {
  4432   } else {
  4433     jio_snprintf(filename, MAX_PATH, "./vm.paused.%d", current_process_id());
  4433     jio_snprintf(filename, MAX_PATH, "./vm.paused.%d", current_process_id());
  4434   }
  4434   }
  4435 
  4435 
  4436   int fd = ::open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
  4436   int fd = ::open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);