Mercurial > vim
changeset 30507:84bcf4a6564a v9.0.0589
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?= <rolfkopman@gmail.com>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Sep 2022 21:15:02 +0200 |
parents | 4cd4e631d655 |
children | fa62c3eb4305 |
files | src/os_amiga.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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));