]> granicus.if.org Git - vim/commitdiff
patch 9.0.0589: on AmigaOS4 the pid is available but the task address is used v9.0.0589
author=?UTF-8?q?Ola=20S=C3=B6der?= <rolfkopman@gmail.com>
Sun, 25 Sep 2022 19:12:21 +0000 (20:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Sep 2022 19:12:21 +0000 (20:12 +0100)
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
src/version.c

index 0e5c7146b2a636d068c4d336fd9f8ad64bea8c4b..25e895680602cd7b39b9e86d8aaf77b15e6e470f 100644 (file)
@@ -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));
index b0f53ab262681b4da94f0aff6f4b8ff2c70a6cfe..dedb6ccb260bb96be85bf5c574f7521eb8a56615 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    589,
 /**/
     588,
 /**/