diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-30 01:26:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 01:26:33 +0200 |
commit | 63526f2eeee774c657270a1ec0cbd788480f14b7 (patch) | |
tree | bacf8807780792b4a8dfaf0480f80e91cf4fe35e /src/nvim/os/process.c | |
parent | a0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c (diff) | |
parent | aac731c22b94117aea2257d4f19fd1f0930a2385 (diff) | |
download | rneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.tar.gz rneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.tar.bz2 rneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.zip |
Merge #9956 from justinmk/vim-8.1.1231
vim-patch:8.1.1231, swap-related patches
Diffstat (limited to 'src/nvim/os/process.c')
-rw-r--r-- | src/nvim/os/process.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/os/process.c b/src/nvim/os/process.c index a67e7487eb..a1020be215 100644 --- a/src/nvim/os/process.c +++ b/src/nvim/os/process.c @@ -265,3 +265,9 @@ Dictionary os_proc_info(int pid) return pinfo; } #endif + +/// Return true if process `pid` is running. +bool os_proc_running(int pid) +{ + return uv_kill(pid, 0) == 0; +} |