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:
committed by
Bram Moolenaar
parent
f01a653ac5
commit
f2832ad965
@@ -887,8 +887,9 @@ sig_tstp SIGDEFARG(sigarg)
|
|||||||
else
|
else
|
||||||
got_tstp = TRUE;
|
got_tstp = TRUE;
|
||||||
|
|
||||||
#ifndef __ANDROID__
|
#if !defined(__ANDROID__) && !defined(__OpenBSD__)
|
||||||
// this is not required on all systems
|
// 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);
|
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
|
||||||
#endif
|
#endif
|
||||||
SIGRETURN;
|
SIGRETURN;
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4532,
|
||||||
/**/
|
/**/
|
||||||
4531,
|
4531,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user