Mercurial > vim
changeset 28015:6f6d55367abb v8.2.4532
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD
Commit: https://github.com/vim/vim/commit/f2832ad9653815103b39daf873511baa37424d3d
Author: Stuart Henderson <sthen@users.noreply.github.com>
Date: Wed Mar 9 14:33:02 2022 +0000
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD
Problem: Suspending with CTRL-Z does not work on OpenBSD.
Solution: Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes https://github.com/vim/vim/issues/9912)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Mar 2022 15:45:02 +0100 |
parents | ff499edf1c96 |
children | d10a46c89635 |
files | src/os_unix.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -887,8 +887,9 @@ sig_tstp SIGDEFARG(sigarg) else got_tstp = TRUE; -#ifndef __ANDROID__ - // this is not required on all systems +#if !defined(__ANDROID__) && !defined(__OpenBSD__) + // This is not required on all systems. On some systems (at least Android + // and OpenBSD) this breaks suspending with CTRL-Z. signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); #endif SIGRETURN;