Mercurial > vim
comparison src/os_amiga.c @ 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 | c0403cd5ca06 |
children | 3365a601e73b |
comparison
equal
deleted
inserted
replaced
30506:4cd4e631d655 | 30507:84bcf4a6564a |
---|---|
702 * return process ID | 702 * return process ID |
703 */ | 703 */ |
704 long | 704 long |
705 mch_get_pid(void) | 705 mch_get_pid(void) |
706 { | 706 { |
707 #if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) | 707 #if defined(__amigaos4__) |
708 return (long) getpid(); | |
709 #elif defined(__AROS__) || defined(__MORPHOS__) | |
708 // This is as close to a pid as we can come. We could use CLI numbers also, | 710 // This is as close to a pid as we can come. We could use CLI numbers also, |
709 // but then we would have two different types of process identifiers. | 711 // but then we would have two different types of process identifiers. |
710 return((long)FindTask(0)); | 712 return((long)FindTask(0)); |
711 #else | 713 #else |
712 return (long)0; | 714 return (long)0; |