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 #11224)
This commit is contained in:
=?UTF-8?q?Ola=20S=C3=B6der?=
2022-09-25 20:12:21 +01:00
committed by Bram Moolenaar
parent 4d2073b261
commit b7e07dc103
2 changed files with 5 additions and 1 deletions

View 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));

View File

@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
589,
/**/
588,
/**/