Patch 8.2.3044

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 24, 2021, 12:52:16 PM6/24/21
to vim...@googlegroups.com

Patch 8.2.3044
Problem: Amiga MorphOS and AROS: process ID is not valid.
Solution: Use FindTask to return something which is unique to all processes.
(Ola Söder, closes #8444)
Files: src/os_amiga.c


*** ../vim-8.2.3043/src/os_amiga.c 2021-06-23 22:05:23.283491070 +0200
--- src/os_amiga.c 2021-06-24 18:47:18.040358985 +0200
***************
*** 446,452 ****
* we use a pointer to the current task instead. This should be a
* shared structure and thus globally unique.
*/
! #ifdef __amigaos4__
sprintf((char *)buf1, "t:nc%p", FindTask(0));
#else
sprintf((char *)buf1, "t:nc%ld", (long)buf1);
--- 446,452 ----
* we use a pointer to the current task instead. This should be a
* shared structure and thus globally unique.
*/
! #if !defined(__amigaos4__) && !defined(__AROS__) && !defined(__MORPHOS__)
sprintf((char *)buf1, "t:nc%p", FindTask(0));
#else
sprintf((char *)buf1, "t:nc%ld", (long)buf1);
***************
*** 706,712 ****
long
mch_get_pid(void)
{
! #ifdef __amigaos4__
// This is as close to a pid as we can come. We could use CLI numbers also,
// but then we would have two different types of process identifiers.
return((long)FindTask(0));
--- 706,712 ----
long
mch_get_pid(void)
{
! #if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
// This is as close to a pid as we can come. We could use CLI numbers also,
// but then we would have two different types of process identifiers.
return((long)FindTask(0));
*** ../vim-8.2.3043/src/version.c 2021-06-23 22:05:23.283491070 +0200
--- src/version.c 2021-06-24 18:48:47.964129956 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3044,
/**/

--
Apparently, 1 in 5 people in the world are Chinese. And there are 5
people in my family, so it must be one of them. It's either my mum
or my dad. Or my older brother Colin. Or my younger brother
Ho-Cha-Chu. But I think it's Colin.

/// 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 ///
Reply all
Reply to author
Forward
0 new messages