|author||rmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>||2006-08-24 12:32:52 +0000|
|committer||rmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>||2006-08-24 12:32:52 +0000|
Moving project to sourceforge.
git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@1 190e5f8e-a817-0410-acf6-e9863daed9af
Diffstat (limited to 'mcon/U/d_keepsig.U')
1 files changed, 81 insertions, 0 deletions
diff --git a/mcon/U/d_keepsig.U b/mcon/U/d_keepsig.U
new file mode 100644
@@ -0,0 +1,81 @@
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS: $Log: d_keepsig.U,v $
+?RCS: Revision 188.8.131.52 1995/07/25 13:57:56 ram
+?RCS: patch56: made cc and ccflags optional dependencies
+?RCS: Revision 184.108.40.206 1995/01/11 15:26:25 ram
+?RCS: patch45: protected "sh -c" within backquotes for Linux and SGI
+?RCS: Revision 220.127.116.11 1994/10/29 16:13:59 ram
+?RCS: patch36: call ./bsd explicitely instead of relying on PATH
+?RCS: Revision 18.104.22.168 1993/10/16 13:48:47 ram
+?RCS: patch12: comment for SIGNALS_KEPT was the other way round
+?RCS: Revision 3.0 1993/08/18 12:06:26 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:d_keepsig: cat Compile rm Guess contains echo n c Setvar run
+?MAKE: -pick add $@ %<
+?S: This variable contains the eventual value of the SIGNALS_KEPT symbol,
+?S: which indicates to the C program if signal handlers need not reinstated
+?S: after receipt of a signal.
+?C: This symbol is defined if signal handlers needn't be reinstated after
+?C: receipt of a signal.
+?H:#$d_keepsig SIGNALS_KEPT /**/
+: see if signals are kept
+echo " "
+echo "Checking to see if signal handlers stick around..." >&4
+$cat >try.c <<'EOCP'
+ signal(2, foo);
+ kill(getpid(), 2);
+ kill(getpid(), 2);
+if eval $compile; then
+?X: On AIX a single ./try will not work (with ksh)
+?X: Backquotes required on Linux and SGI (prevents "ambiguous output redirect")
+?X: (reported by Xavier LeVourch <email@example.com>)
+ echo `sh -c $run ./try >try.out 2>/dev/null` >/dev/null
+ if $contains abc try.out >/dev/null 2>&1; then
+ echo "Yes, they do."
+ echo "No, they don't."
+ $echo $n "(I can't seem to compile the test program. Assuming $c"
+ if ./bsd; then
+ echo "they do.)"
+ echo "they don't.)"
+$rm -f try*