Patch 9.0.0589

3 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 25, 2022, 3:15:49 PM9/25/22
to vim...@googlegroups.com

Patch 9.0.0589
Problem: On AmigaOS4 the pid is available but the task address is used.
Solution: Use getpid(). (Ola Söder, closes #11224)
Files: src/os_amiga.c


*** ../vim-9.0.0588/src/os_amiga.c 2022-05-09 19:12:32.000000000 +0100
--- src/os_amiga.c 2022-09-25 20:10:23.140625694 +0100
***************
*** 704,710 ****
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));
--- 704,712 ----
long
mch_get_pid(void)
{
! #if defined(__amigaos4__)
! return (long) getpid();
! #elif 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-9.0.0588/src/version.c 2022-09-25 19:36:33.963576247 +0100
--- src/version.c 2022-09-25 20:10:29.264610609 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 589,
/**/

--
hundred-and-one symptoms of being an internet addict:
175. You send yourself e-mail before you go to bed to remind you
what to do when you wake up.

/// 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