comparison src/os/aix/vm/os_aix.cpp @ 23020:bbceafdc7a5f

6536943: Bogus -Xcheck:jni warning for SIG_INT action for SIGINT in JVM started from non-interactive shell Summary: check_signal_handler will print out Warning for SHURDOWN2_SIGNAL (SIGINT) is replaced by non-interactive shell. Fix by supply more information of the replacement to user. Reviewed-by: dholmes Contributed-by: yumin.qi@oracle.com
author minqi
date Thu, 14 May 2015 20:56:57 -0700
parents 8461d0b03127
children
comparison
equal deleted inserted replaced
23011:1e96e4389302 23020:bbceafdc7a5f
1 /* 1 /*
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
3 * Copyright 2012, 2014 SAP AG. All rights reserved. 3 * Copyright 2012, 2014 SAP AG. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * 5 *
6 * This code is free software; you can redistribute it and/or modify it 6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as 7 * under the terms of the GNU General Public License version 2 only, as
3725 tty->print("Warning: %s handler ", exception_name(sig, buf, O_BUFLEN)); 3725 tty->print("Warning: %s handler ", exception_name(sig, buf, O_BUFLEN));
3726 tty->print("expected:%s", get_signal_handler_name(jvmHandler, buf, O_BUFLEN)); 3726 tty->print("expected:%s", get_signal_handler_name(jvmHandler, buf, O_BUFLEN));
3727 tty->print_cr(" found:%s", get_signal_handler_name(thisHandler, buf, O_BUFLEN)); 3727 tty->print_cr(" found:%s", get_signal_handler_name(thisHandler, buf, O_BUFLEN));
3728 // No need to check this sig any longer 3728 // No need to check this sig any longer
3729 sigaddset(&check_signal_done, sig); 3729 sigaddset(&check_signal_done, sig);
3730 // Running under non-interactive shell, SHUTDOWN2_SIGNAL will be reassigned SIG_IGN
3731 if (sig == SHUTDOWN2_SIGNAL && !isatty(fileno(stdin))) {
3732 tty->print_cr("Running in non-interactive shell, %s handler is replaced by shell",
3733 exception_name(sig, buf, O_BUFLEN));
3734 }
3730 } else if (os::Aix::get_our_sigflags(sig) != 0 && (int)act.sa_flags != os::Aix::get_our_sigflags(sig)) { 3735 } else if (os::Aix::get_our_sigflags(sig) != 0 && (int)act.sa_flags != os::Aix::get_our_sigflags(sig)) {
3731 tty->print("Warning: %s handler flags ", exception_name(sig, buf, O_BUFLEN)); 3736 tty->print("Warning: %s handler flags ", exception_name(sig, buf, O_BUFLEN));
3732 tty->print("expected:" PTR32_FORMAT, os::Aix::get_our_sigflags(sig)); 3737 tty->print("expected:" PTR32_FORMAT, os::Aix::get_our_sigflags(sig));
3733 tty->print_cr(" found:" PTR32_FORMAT, act.sa_flags); 3738 tty->print_cr(" found:" PTR32_FORMAT, act.sa_flags);
3734 // No need to check this sig any longer 3739 // No need to check this sig any longer