1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1982-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * Fault handling routines 1N/A * This exception handler is called after vmalloc() unlocks the region 1N/A * Most signals caught or ignored by the shell come here 1N/A#
endif /* SIGWINCH */ 1N/A /* critical region, save and process later */ 1N/A /* handle ignored signals */ 1N/A /* mark signal and continue */ 1N/A /* abort inside malloc, process when malloc returns */ 1N/A /* VMFL defined when using vmalloc() */ 1N/A * propogate signal to foreground group 1N/A * initialize signal handling 1N/A /* find the largest signal number in the table */ 1N/A#
endif /* SIGRTMIN && SIGRTMAX */ 1N/A * Turn on trap handler for signal <sig> 1N/A /* don't set signal if already set or off by parent */ 1N/A * set signal handler so sh_done is called for all caught signals 1N/A * Restore to default signals 1N/A * Free the trap strings if mode is non-zero 1N/A * If mode>1 then ignored traps cause signal to be ignored 1N/A * free up trap if set and restore signal handler if modified 1N/A /* execute errexit trap first */ 1N/A#
endif /* SHOPT_BGX */ 1N/A#
endif /* SHOPT_BGX */ 1N/A * parse and execute the given trap string, stream or tree depending on mode 1N/A * mode==0 for string, mode==1 for stream, mode==2 for parse tree 1N/A * exit the current scope and jump to an earlier one based on pp->mode 1N/A /* ^Z detected by the shell */ 1N/A /* Handles ^Z for shell builtins, subshells, and functs */ 1N/A /* wait for child to stop */ 1N/A /* return to prompt mode */ 1N/A /* child process, put to sleep */ 1N/A /* stop child job */ 1N/A /* unlock output pool */ 1N/A#
endif /* SHOPT_TYPEDEF*/ 1N/A * This is the exit routine for the shell 1N/A /* avoid recursive call for set -e */ 1N/A#
endif /* SHOPT_ACCT */ 1N/A /* generate fault termination code */ 1N/A#
endif /* SHOPT_KIA */