]> granicus.if.org Git - vim/commitdiff
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD v8.2.4532
authorStuart Henderson <sthen@users.noreply.github.com>
Wed, 9 Mar 2022 14:33:02 +0000 (14:33 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 9 Mar 2022 14:33:02 +0000 (14:33 +0000)
Problem:    Suspending with CTRL-Z does not work on OpenBSD.
Solution:   Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes #9912)

src/os_unix.c
src/version.c

index 58f8276fb595d20e177a9e82c6a011f63ea6d91d..e617b128faeb56a15b03b11e0f0f1e1887a130a1 100644 (file)
@@ -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;
index 9b25ef0deb256d33d9472976ef729cb9aa307db3..9248ca4031eb0ba82b65d95001692dd45e49488c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4532,
 /**/
     4531,
 /**/