Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh ksh: Drop support for UNIX V7-style signal routines



details:   https://anonhg.NetBSD.org/src/rev/1e47b99db487
branches:  trunk
changeset: 824928:1e47b99db487
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Jun 23 00:00:58 2017 +0000

description:
ksh: Drop support for UNIX V7-style signal routines

diffstat:

 bin/ksh/config.h |  5 +----
 bin/ksh/trap.c   |  9 +++------
 2 files changed, 4 insertions(+), 10 deletions(-)

diffs (49 lines):

diff -r 864b16203bf1 -r 1e47b99db487 bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:59:28 2017 +0000
+++ b/bin/ksh/config.h  Fri Jun 23 00:00:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.34 2017/06/22 23:59:28 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.35 2017/06/23 00:00:58 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -66,9 +66,6 @@
 /* Define if you have posix signal routines (sigaction(), et. al.) */
 #define POSIX_SIGNALS 1
 
-/* Define if you have v7 signal routines (signal(), signal reset on delivery) */
-/* #undef V7_SIGNALS */
-
 /* Define to use the fake posix signal routines (sigact.[ch]) */
 /* #undef USE_FAKE_SIGACT */
 
diff -r 864b16203bf1 -r 1e47b99db487 bin/ksh/trap.c
--- a/bin/ksh/trap.c    Thu Jun 22 23:59:28 2017 +0000
+++ b/bin/ksh/trap.c    Fri Jun 23 00:00:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.11 2017/06/22 14:20:46 kamil Exp $  */
+/*     $NetBSD: trap.c,v 1.12 2017/06/23 00:00:58 kamil Exp $  */
 
 /*
  * signal handling
@@ -6,7 +6,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: trap.c,v 1.11 2017/06/22 14:20:46 kamil Exp $");
+__RCSID("$NetBSD: trap.c,v 1.12 2017/06/23 00:00:58 kamil Exp $");
 #endif
 
 #include "sh.h"
@@ -141,10 +141,7 @@
        }
        if (p->shtrap)
                (*p->shtrap)(i);
-#ifdef V7_SIGNALS
-       if (sigtraps[i].cursig == trapsig) /* this for SIGCHLD,SIGALRM */
-               sigaction(i, &Sigact_trap, (struct sigaction *) 0);
-#endif /* V7_SIGNALS */
+
        errno = errno_;
        return RETSIGVAL;
 }



Home | Main Index | Thread Index | Old Index