summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Src/Modules/zpty.c7
-rw-r--r--Test/comptest2
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f204d2e29..78e378a27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-08 Peter Stephenson <pws@csr.com>
+
+ * Andrej: 14248: Src/Modules/zpty.c, Test/comptest: don't use
+ O_NOCTTY in one case for zpty on cygwin, remove incorrect flag for
+ no blocking with zpty in comptest.
+
2001-05-08 Sven Wischnowsky <wischnow@zsh.org>
* 14252: Completion/Base/Core/_description, Doc/Zsh/compsys.yo:
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index c69aa4e97..80deba786 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -183,7 +183,12 @@ get_pty(int master, int *retfd)
return 0;
}
- if ((sfd = open(name, O_RDWR|O_NOCTTY)) < 0) {
+ if ((sfd = open(name, O_RDWR
+#ifndef __CYGWIN__
+ /* It is not clear whether this flag is actually needed. */
+ |O_NOCTTY
+#endif
+ )) < 0) {
close(mfd);
return 1;
}
diff --git a/Test/comptest b/Test/comptest
index 99867c5e3..c2cd74074 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -18,7 +18,7 @@ comptestinit () {
(( OPTIND > 1 )) && shift $(( OPTIND - 1 ))
export PS1="<PROMPT>"
- zpty -b zsh "$comptest_zsh -f +Z"
+ zpty zsh "$comptest_zsh -f +Z"
zpty -r zsh log1 "*<PROMPT>*" || {
print "first prompt hasn't appeared."