Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Hang in E01 due to zpty on OpenBSD
- X-seq: zsh-workers 50010
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Hang in E01 due to zpty on OpenBSD
- Date: Thu, 7 Apr 2022 12:47:18 +0900
- Archived-at: <https://zsh.org/workers/50010>
- In-reply-to: <Yk2NU2krjfBGnQBu@CptOrmolo.darkstar>
- List-id: <zsh-workers.zsh.org>
- References: <YkoUwETgsrrqDeZN@CptOrmolo.darkstar> <CAH+w=7ba1fo9BdNurD9TH5MjuyYRk=-xJ0ioXo8aTt_ZCKEhLw@mail.gmail.com> <YkpZH28mfZHlsd2T@CptOrmolo.darkstar> <YkpqyANtIznaB1tC@CptOrmolo.darkstar> <4BCAE950-2D78-415A-88C3-8362946DC74C@kba.biglobe.ne.jp> <YkrvmNPJwCRPZ0Ud@CptOrmolo.darkstar> <E1767D7E-9DAC-4261-ACEF-5BF1F59A0927@kba.biglobe.ne.jp> <Yk2NU2krjfBGnQBu@CptOrmolo.darkstar>
> 2022/04/06 21:53, Matthew Martin <phy1729@xxxxxxxxx> wrote:
>
> I'd prefer something like the below where it's a feature test instead of
> an OS test.
I was thinking that we should better minimize the possible side effects
just before the new release.
If we use your patch (with some fixes) openpty() will be used on ALL systems
(Linux, other BSDs and macOS, ...) if it is available. Is this what you
want to achieve? It may work but we need to test on lots of systems.
> diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
(snip)
> +#elifdef USE_DEV_PTMX
#elif defined(USE_DEV_PTMX)
> -#elif defined(__OpenBSD__)
> - static char char1[] = "pqrstuvwxyzPQRST";
> - static char char2[] = "0123456789"
> - "abcdefghijklmnopqrstuvwxyz"
> - "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
I think we need to keep this in case openpty() is not available on OpenBSD.
> diff --git a/configure.ac b/configure.ac
(snip)
> +AC_MSG_CHECKING([for openpty])
> +openpty=no
We need to call AC_SEARCH_LIBS(openpty, util) here to add -lutil to LIBS.
Otherwise the following two AC_LINK_IFELSE() fail and openpty() will never
be used.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author