diff options
author | Stuart Henderson <sthen@users.noreply.github.com> | 2022-03-09 14:33:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-09 14:33:02 +0000 |
commit | f2832ad9653815103b39daf873511baa37424d3d (patch) | |
tree | a2ae1f9069f3aae01d9d2c489b7f7ff193a3af36 | |
parent | f01a653ac50bb3542c24d26bb3fa5371cc3b2ed7 (diff) |
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSDv8.2.4532
Problem: Suspending with CTRL-Z does not work on OpenBSD.
Solution: Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes #9912)
-rw-r--r-- | src/os_unix.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 58f8276fb5..e617b128fa 100644 --- 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; diff --git a/src/version.c b/src/version.c index 9b25ef0deb..9248ca4031 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4532, +/**/ 4531, /**/ 4530, |