fix obscure signal-handling bugs
add readline support PR: 43945 Submitted by: maintainer
This commit is contained in:
parent
05ded1b8a5
commit
7c19b9d582
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67868
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= es
|
||||
PORTVERSION= 0.9.b1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= shells
|
||||
MASTER_SITES= ftp://ftp.sys.toronto.edu/pub/es/
|
||||
DISTNAME= es-0.9-beta1
|
||||
@ -15,6 +15,7 @@ DISTNAME= es-0.9-beta1
|
||||
MAINTAINER= ljrittle@acm.org
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-readline
|
||||
|
||||
ALL_TARGET= es
|
||||
MAN1= es.1
|
||||
|
14
shells/es/files/patch-prim-ctl.c
Normal file
14
shells/es/files/patch-prim-ctl.c
Normal file
@ -0,0 +1,14 @@
|
||||
--- prim-ctl.c.orig Sat Apr 12 04:54:34 1997
|
||||
+++ prim-ctl.c Sat Oct 12 23:33:16 2002
|
||||
@@ -77,8 +77,10 @@
|
||||
if (termeq(fromcatcher->term, "retry")) {
|
||||
retry = TRUE;
|
||||
unblocksignals();
|
||||
- } else
|
||||
+ } else {
|
||||
+ unblocksignals();
|
||||
throw(fromcatcher);
|
||||
+ }
|
||||
EndExceptionHandler
|
||||
|
||||
EndExceptionHandler
|
11
shells/es/files/patch-signal.c
Normal file
11
shells/es/files/patch-signal.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- signal.c.orig Sat Apr 12 04:54:37 1997
|
||||
+++ signal.c Sat Oct 12 23:33:16 2002
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
/* catcher -- catch (and defer) a signal from the kernel */
|
||||
static void catcher(int sig) {
|
||||
-#if !SYSV_SIGNALS /* only do this for unreliable signals */
|
||||
+#if SYSV_SIGNALS /* only do this for unreliable signals */
|
||||
signal(sig, catcher);
|
||||
#endif
|
||||
if (hasforked)
|
Loading…
Reference in New Issue
Block a user