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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202106241652.15OGq8C91454945%40masaka.moolenaar.net.