From b7e07dc1036b5b02870c72e872bbb248640ade7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FOla=3D20S=3DC3=3DB6der=3F=3D?= Date: Sun, 25 Sep 2022 20:12:21 +0100 Subject: [PATCH] patch 9.0.0589: on AmigaOS4 the pid is available but the task address is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: On AmigaOS4 the pid is available but the task address is used. Solution: Use getpid(). (Ola Söder, closes #11224) --- src/os_amiga.c | 4 +++- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os_amiga.c b/src/os_amiga.c index 0e5c7146b2..25e8956806 100644 --- 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 index b0f53ab262..dedb6ccb26 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 589, /**/ 588, /**/