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 49985
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Hang in E01 due to zpty on OpenBSD
- Date: Mon, 4 Apr 2022 13:21:34 +0200
- Archived-at: <https://zsh.org/workers/49985>
- In-reply-to: <4BCAE950-2D78-415A-88C3-8362946DC74C@kba.biglobe.ne.jp>
- 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>
On 4/4/22, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> Please try the following patch.
>
> diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
> index dfd2a2a7a..cdab1d8e1 100644
> --- a/Src/Modules/zpty.c
> +++ b/Src/Modules/zpty.c
> diff --git a/configure.ac b/configure.ac
> index 8bba78c56..6aae71300 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2441,6 +2441,18 @@ int ptsname();]],
> [[]])],[ac_cv_use_dev_ptmx=no],[ac_cv_use_dev_ptmx=yes])])
> fi
> fi
>
> +dnl On (some) OpenBSD, it seems openpty() is the only reliable way to get
> pty.
> +AH_TEMPLATE([HAVE_OPENPTY],
> +[Define to 1 if openpt() is available on OpenBSD])
Missing y here in openpty.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author