1 ?RCS: $Id: abortsig.U,v 3.0.1.1 1994/10/29 16:02:19 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: abortsig.U,v $
12 ?RCS: Revision 3.0.1.1 1994/10/29 16:02:19 ram
13 ?RCS: patch36: call ./usg explicitly instead of relying on PATH
15 ?RCS: Revision 3.0 1993/08/18 12:05:20 ram
16 ?RCS: Baseline for dist 3.0 netwide release.
18 ?MAKE:abortsig: Myread Oldconfig Guess cat Compile rm
19 ?MAKE: -pick add $@ %<
21 ?S: This variable holds the name of the signal used by the abort() call.
24 ?C: This symbol holds the signal number (symbol) used by the abort() call. To
25 ?C: actually define the signal symbol, <signal.h> should be included.
27 ?H:#define ABORTSIG $abortsig /**/
30 : which signal is sent by abort ?
34 echo "Checking to see which signal is sent to the process by abort()..." >&4
35 echo "abort" > abort.sh
37 ?X: SIGABRT should replace SIGIOT on USG machines in a near future (1991).
38 for signal in SIGIOT SIGILL SIGABRT; do
40 '') $cat >abort.c <<EOP
46 signal($signal, caught);
53 ?X: We have to use the abort.sh script otherwise sh behaves strangely on AIX.
55 if eval $compile; then
56 (./abort.sh) >/dev/null 2>&1
58 0) abortsig="$signal";;
67 '') echo "(I wasn't able to compute the signal name--guessing)"
76 rp="Which signal does abort() send to the process (signal name)?"
79 $rm -f core abort.sh abort abort.c