mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
Fixes from Andrej for zpty on cygwin
This commit is contained in:
parent
ff82191c26
commit
8ff0785863
3 changed files with 13 additions and 2 deletions
|
@ -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>
|
2001-05-08 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
* 14252: Completion/Base/Core/_description, Doc/Zsh/compsys.yo:
|
* 14252: Completion/Base/Core/_description, Doc/Zsh/compsys.yo:
|
||||||
|
|
|
@ -183,7 +183,12 @@ get_pty(int master, int *retfd)
|
||||||
|
|
||||||
return 0;
|
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);
|
close(mfd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ comptestinit () {
|
||||||
(( OPTIND > 1 )) && shift $(( OPTIND - 1 ))
|
(( OPTIND > 1 )) && shift $(( OPTIND - 1 ))
|
||||||
|
|
||||||
export PS1="<PROMPT>"
|
export PS1="<PROMPT>"
|
||||||
zpty -b zsh "$comptest_zsh -f +Z"
|
zpty zsh "$comptest_zsh -f +Z"
|
||||||
|
|
||||||
zpty -r zsh log1 "*<PROMPT>*" || {
|
zpty -r zsh log1 "*<PROMPT>*" || {
|
||||||
print "first prompt hasn't appeared."
|
print "first prompt hasn't appeared."
|
||||||
|
|
Loading…
Reference in a new issue