Patch 8.2.4560

7 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 13, 2022, 1:28:42 PM3/13/22
to vim...@googlegroups.com

Patch 8.2.4560
Problem: Suspending with CTRL-Z does not work on DragonFlyBSD.
Solution: Adjust #ifdef. (Ozaki Kiichi, closes #9943)
Files: src/os_unix.c


*** ../vim-8.2.4559/src/os_unix.c 2022-03-09 14:32:59.617641710 +0000
--- src/os_unix.c 2022-03-13 17:22:29.407382895 +0000
***************
*** 887,895 ****
else
got_tstp = TRUE;

! #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;
--- 887,895 ----
else
got_tstp = TRUE;

! #if !defined(__ANDROID__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
! // This is not required on all systems. On some systems (at least Android,
! // OpenBSD, and DragonFlyBSD) this breaks suspending with CTRL-Z.
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
#endif
SIGRETURN;
*** ../vim-8.2.4559/src/version.c 2022-03-13 15:52:34.173429915 +0000
--- src/version.c 2022-03-13 17:25:14.094960245 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4560,
/**/

--
Emacs is a nice OS - but it lacks a good text editor.
That's why I am using Vim. --Anonymous

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Dominique Pellé

unread,
Mar 13, 2022, 4:05:58 PM3/13/22
to vim_dev
Bram Moolenaar wrote:

> Patch 8.2.4560
> Problem: Suspending with CTRL-Z does not work on DragonFlyBSD.
> Solution: Adjust #ifdef. (Ozaki Kiichi, closes #9943)
> Files: src/os_unix.c
...snip...
> ! #if !defined(__ANDROID__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
> ! // This is not required on all systems. On some systems (at least Android,
> ! // OpenBSD, and DragonFlyBSD) this breaks suspending with CTRL-Z.
> signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
> #endif

I wonder whether there is a better way than adding
ifdef values whenever someone reports an issue.

I can't verify but perhaps we also need to check __FreeBSD__
__NetBSD__, __bsdi__, others ?

It would be nice if someone with such a system could
confirm whether CTRL-Z works or not and whether
adding extra ifdef cases fixes it.

Regards
Dominique
Reply all
Reply to author
Forward
0 new messages