Mercurial > vim
comparison src/os_unix.c @ 28015:6f6d55367abb v8.2.4532
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD
Commit: https://github.com/vim/vim/commit/f2832ad9653815103b39daf873511baa37424d3d
Author: Stuart Henderson <sthen@users.noreply.github.com>
Date: Wed Mar 9 14:33:02 2022 +0000
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 https://github.com/vim/vim/issues/9912)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Mar 2022 15:45:02 +0100 |
parents | 350573685806 |
children | 31b866686e33 |
comparison
equal
deleted
inserted
replaced
28014:ff499edf1c96 | 28015:6f6d55367abb |
---|---|
885 raise(sigarg); | 885 raise(sigarg); |
886 } | 886 } |
887 else | 887 else |
888 got_tstp = TRUE; | 888 got_tstp = TRUE; |
889 | 889 |
890 #ifndef __ANDROID__ | 890 #if !defined(__ANDROID__) && !defined(__OpenBSD__) |
891 // this is not required on all systems | 891 // This is not required on all systems. On some systems (at least Android |
892 // and OpenBSD) this breaks suspending with CTRL-Z. | |
892 signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); | 893 signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp); |
893 #endif | 894 #endif |
894 SIGRETURN; | 895 SIGRETURN; |
895 } | 896 } |
896 #endif | 897 #endif |