1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

Fixes from Andrej for zpty on cygwin

This commit is contained in:
Peter Stephenson 2001-05-08 10:26:58 +00:00
parent ff82191c26
commit 8ff0785863
3 changed files with 13 additions and 2 deletions

View file

@ -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:

View file

@ -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;
}

View file

@ -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."