1
0
forked from aniani/vim

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 #9912)
This commit is contained in:
Stuart Henderson
2022-03-09 14:33:02 +00:00
committed by Bram Moolenaar
parent f01a653ac5
commit f2832ad965
2 changed files with 5 additions and 2 deletions

View 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;