src/os/linux/vm/os_linux.cpp

changeset 7824
bbceafdc7a5f
parent 7808
9a23a160ca57
child 7994
04ff2f6cd0eb
child 8065
54203a323126
     1.1 --- a/src/os/linux/vm/os_linux.cpp	Thu May 07 19:37:47 2015 -0700
     1.2 +++ b/src/os/linux/vm/os_linux.cpp	Thu May 14 20:56:57 2015 -0700
     1.3 @@ -4635,6 +4635,11 @@
     1.4      tty->print_cr("  found:%s", get_signal_handler_name(thisHandler, buf, O_BUFLEN));
     1.5      // No need to check this sig any longer
     1.6      sigaddset(&check_signal_done, sig);
     1.7 +    // Running under non-interactive shell, SHUTDOWN2_SIGNAL will be reassigned SIG_IGN
     1.8 +    if (sig == SHUTDOWN2_SIGNAL && !isatty(fileno(stdin))) {
     1.9 +      tty->print_cr("Running in non-interactive shell, %s handler is replaced by shell",
    1.10 +                    exception_name(sig, buf, O_BUFLEN));
    1.11 +    }
    1.12    } else if(os::Linux::get_our_sigflags(sig) != 0 && (int)act.sa_flags != os::Linux::get_our_sigflags(sig)) {
    1.13      tty->print("Warning: %s handler flags ", exception_name(sig, buf, O_BUFLEN));
    1.14      tty->print("expected:" PTR32_FORMAT, os::Linux::get_our_sigflags(sig));

mercurial