equal
deleted
inserted
replaced
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); |