Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Hang in E01 due to zpty on OpenBSD



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