jsig.c revision 1879
1879N/A * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A/* CopyrightVersion 1.2 */ 0N/A/* This is a special library that should be loaded before libc & 0N/A * libthread to interpose the signal handler installation functions: 0N/A * sigaction(), signal(), sigset(). 0N/A * Used for signal-chaining. See RFE 4381843. 0N/A/* used to synchronize the installation of signal handlers */ 0N/A/* assume called within signal_lock */ 0N/A /* When the jvm is installing its set of signal handlers, threads 0N/A * other than the jvm thread should wait */ 0N/A /* jvm has installed its signal handler for this signal. */ 0N/A /* Save the handler. Don't really install it. */ 0N/A /* We won't honor the SIG_HOLD request to change the signal mask */ 0N/A /* jvm is installing its signal handlers. Install the new 0N/A * handlers and save the old ones. jvm uses sigaction(). 0N/A * Leave the piece here just in case. */ 0N/A /* Record the signals used by jvm */ 0N/A /* jvm has no relation with this signal (yet). Install the 0N/A /* jvm has installed its signal handler for this signal. */ 0N/A /* Save the handler. Don't really install it. */ 0N/A /* jvm is installing its signal handlers. Install the new 0N/A * handlers and save the old ones. */ 0N/A /* Record the signals used by jvm */ 0N/A /* jvm has no relation with this signal (yet). Install the 0N/A/* The four functions for the jvm to call into */ 0N/A /* Does race condition make sense here? */