# HG changeset patch # User Bram Moolenaar # Date 1664133302 -7200 # Node ID 84bcf4a6564a0c98b73a3b83ca026859ab283ae5 # Parent 4cd4e631d655770800c93cd058a00fcaa1dafb00 patch 9.0.0589: on AmigaOS4 the pid is available but the task address is used Commit: https://github.com/vim/vim/commit/b7e07dc1036b5b02870c72e872bbb248640ade7d Author: =?UTF-8?q?Ola=20S=C3=B6der?= Date: Sun Sep 25 20:12:21 2022 +0100 patch 9.0.0589: on AmigaOS4 the pid is available but the task address is used Problem: On AmigaOS4 the pid is available but the task address is used. Solution: Use getpid(). (Ola S?der, closes https://github.com/vim/vim/issues/11224) diff --git a/src/os_amiga.c b/src/os_amiga.c --- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -704,7 +704,9 @@ mch_get_host_name(char_u *s, int len) long mch_get_pid(void) { -#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) +#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)); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 589, +/**/ 588, /**/ 587,