mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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:
committed by
Bram Moolenaar
parent
4d2073b261
commit
b7e07dc103
@ -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));
|
||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
589,
|
||||
/**/
|
||||
588,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user