diff options
author | Martin Cracauer <cracauer@FreeBSD.org> | 2005-09-23 16:07:16 +0000 |
---|---|---|
committer | Martin Cracauer <cracauer@FreeBSD.org> | 2005-09-23 16:07:16 +0000 |
commit | 9fb684b74a6f5c49f788905c949b780d82b0412e (patch) | |
tree | 74defe377e56a23d3c56c487706af9cd03668704 /editors/emacs20 | |
parent | - Update to 1.0.1 (diff) |
Fix allocation of pty for shell-mode.
This was broken for newer FreeBSDs which give out pty names
/dev/pty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv]
emacs, manually searching, stopped at a gap of 3 entries. But the new
naming scheme allows a gap of 28. Set to 30 just in case. Actually
there's no good reason not to set that to 256, it's not that 512
system calls kill us everytime someone opens a shell in emacs.
Bump portsrevision so that it gets picked up by portupgrade.
I wonder whether other emacsens are affected, too...
Diffstat (limited to 'editors/emacs20')
-rw-r--r-- | editors/emacs20/Makefile | 2 | ||||
-rw-r--r-- | editors/emacs20/files/patch-ch | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/editors/emacs20/Makefile b/editors/emacs20/Makefile index ff4b58d25b34..53133624f1a6 100644 --- a/editors/emacs20/Makefile +++ b/editors/emacs20/Makefile @@ -7,7 +7,7 @@ PORTNAME= emacs PORTVERSION= ${EMACS_VER} -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES+= editors ipv6 MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= emacs diff --git a/editors/emacs20/files/patch-ch b/editors/emacs20/files/patch-ch index f68aed045a8d..02301bd363c5 100644 --- a/editors/emacs20/files/patch-ch +++ b/editors/emacs20/files/patch-ch @@ -1,5 +1,5 @@ ---- src/process.c.orig Tue Jul 1 16:24:08 2003 -+++ src/process.c Tue Jul 1 16:24:42 2003 +--- src/process.c.original Fri Sep 23 11:49:02 2005 ++++ src/process.c Fri Sep 23 11:51:45 2005 @@ -400,6 +400,14 @@ #ifdef HAVE_PTYS @@ -31,6 +31,15 @@ #endif /* no PTY_NAME_SPRINTF */ #ifdef PTY_OPEN +@@ -446,7 +454,7 @@ + if (stat (pty_name, &stb) < 0) + { + failed_count++; +- if (failed_count >= 3) ++ if (failed_count >= 30) + return -1; + } + else @@ -466,7 +474,7 @@ #ifdef PTY_TTY_NAME_SPRINTF PTY_TTY_NAME_SPRINTF |