From cbef12e60b2c5a4f026172ab9873deaab2e70cf2 Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@users.noreply.github.com> Date: Sun, 27 Feb 2022 12:31:52 +0000 Subject: [PATCH] patch 8.2.4480: suspending with CTRL-Z does not work on Android Problem: Suspending with CTRL-Z does not work on Android. Solution: Do not handle SIGTSTP. (closes #9854) --- src/os_unix.c | 4 +++- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os_unix.c b/src/os_unix.c index d36eb46a2..58f8276fb 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -887,8 +887,10 @@ sig_tstp SIGDEFARG(sigarg) else got_tstp = TRUE; - // this is not required on all systems, but it doesn't hurt anybody +#ifndef __ANDROID__ + // this is not required on all systems signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); +#endif SIGRETURN; } #endif diff --git a/src/version.c b/src/version.c index a8c0bdc55..b9b6aac63 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4480, /**/ 4479, /**/ -- 2.40.0