1879N/A * Copyright (c) 1998, 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// sun.misc.Signal /////////////////////////////////////////////////////////// 0N/A * This function is included primarily as a debugging aid. If Java is 0N/A * running in a console window, then pressing <CTRL-\\> will cause 0N/A * the current state of all active threads and monitors to be written 0N/A * to the console window. 0N/A // Copied from classic vm 0N/A /* The following are already used by the VM. */ 0N/A /* The following signal is used by the VM to dump thread stacks unless 0N/A ReduceSignalUsage is set, in which case the user is allowed to set 0N/A his own _native_ handler for this signal; thus, in either case, 0N/A we do not allow JVM_RegisterSignal to change the handler. */ 0N/A /* The following signals are used for Shutdown Hooks support. However, if 0N/A ReduceSignalUsage (-Xrs) is set, Shutdown Hooks must be invoked via 0N/A System.exit(), Java is not allowed to use these signals, and the the 0N/A user is allowed to set his own _native_ handler for these signals and 0N/A registration of these signals when -Xrs is present. 0N/A - If the HUP signal is ignored (from the nohup) command, then Java 0N/A is not allowed to use this signal. 0N/A /* Check parameterized signals. Don't allow sharing of our interrupt signal */ 0N/A // do not allow SHUTDOWN1_SIGNAL,SHUTDOWN2_SIGNAL,SHUTDOWN3_SIGNAL, 0N/A // BREAK_SIGNAL to be raised when ReduceSignalUsage is set, since 0N/A // no handler for them is actually registered in JVM or via 0N/A // JVM_RegisterSignal. 0N/A // do not allow SHUTDOWN1_SIGNAL to be raised when SHUTDOWN1_SIGNAL 0N/A // is ignored, since no handler for them is actually registered in JVM 0N/A // or via JVM_RegisterSignal. 0N/A // This also applies for SHUTDOWN2_SIGNAL and SHUTDOWN3_SIGNAL 0N/A All the defined signal names for Solaris are defined by str2sig(). 0N/A NOTE that not all of these names are accepted by our Java implementation 0N/A Via an existing claim by the VM, sigaction restrictions, or 0N/A the "rules of Unix" some of these names will be rejected at runtime. 0N/A For example the VM sets up to handle USR1, sigaction returns EINVAL for 0N/A CANCEL, and Solaris simply doesn't allow catching of KILL. 0N/A Here are the names currently accepted by a user of sun.misc.Signal with 0N/A 1.4.1 (ignoring potential interaction with use of chaining, etc): 0N/A HUP, INT, TRAP, IOT, ABRT, EMT, BUS, SYS, PIPE, ALRM, TERM, USR2, 0N/A CLD, CHLD, PWR, WINCH, URG, POLL, IO, TSTP, CONT, TTIN, TTOU, VTALRM, 0N/A PROF, XCPU, XFSZ, FREEZE, THAW, LOST 0N/A /* return the named signal's number */ 0N/A//Reconciliation History