hotspot/src/os/linux/vm/os_linux.cpp
changeset 23444 b5457261694b
parent 23185 a2143156a0a0
child 23479 c8d925d6c93f
equal deleted inserted replaced
23443:15e8ed68f73a 23444:b5457261694b
  4558     tty->print("Warning: %s handler ", exception_name(sig, buf, O_BUFLEN));
  4558     tty->print("Warning: %s handler ", exception_name(sig, buf, O_BUFLEN));
  4559     tty->print("expected:%s", get_signal_handler_name(jvmHandler, buf, O_BUFLEN));
  4559     tty->print("expected:%s", get_signal_handler_name(jvmHandler, buf, O_BUFLEN));
  4560     tty->print_cr("  found:%s", get_signal_handler_name(thisHandler, buf, O_BUFLEN));
  4560     tty->print_cr("  found:%s", get_signal_handler_name(thisHandler, buf, O_BUFLEN));
  4561     // No need to check this sig any longer
  4561     // No need to check this sig any longer
  4562     sigaddset(&check_signal_done, sig);
  4562     sigaddset(&check_signal_done, sig);
       
  4563     // Running under non-interactive shell, SHUTDOWN2_SIGNAL will be reassigned SIG_IGN
       
  4564     if (sig == SHUTDOWN2_SIGNAL && !isatty(fileno(stdin))) {
       
  4565       tty->print_cr("Running in non-interactive shell, %s handler is replaced by shell",
       
  4566                     exception_name(sig, buf, O_BUFLEN));
       
  4567     }
  4563   } else if(os::Linux::get_our_sigflags(sig) != 0 && (int)act.sa_flags != os::Linux::get_our_sigflags(sig)) {
  4568   } else if(os::Linux::get_our_sigflags(sig) != 0 && (int)act.sa_flags != os::Linux::get_our_sigflags(sig)) {
  4564     tty->print("Warning: %s handler flags ", exception_name(sig, buf, O_BUFLEN));
  4569     tty->print("Warning: %s handler flags ", exception_name(sig, buf, O_BUFLEN));
  4565     tty->print("expected:" PTR32_FORMAT, os::Linux::get_our_sigflags(sig));
  4570     tty->print("expected:" PTR32_FORMAT, os::Linux::get_our_sigflags(sig));
  4566     tty->print_cr("  found:" PTR32_FORMAT, act.sa_flags);
  4571     tty->print_cr("  found:" PTR32_FORMAT, act.sa_flags);
  4567     // No need to check this sig any longer
  4572     // No need to check this sig any longer