#include <uv.h>
#include "nvim/api/private/helpers.h"
#include "nvim/globals.h"
#include "nvim/log.h"
#include "nvim/os/os.h"
#include "nvim/os/os_defs.h"
#include "nvim/os/process.h"
Functions | |
bool | os_proc_tree_kill (int pid, int sig) |
Kills process group where pid is the process group leader. More... | |
int | os_proc_children (int ppid, int **proc_list, size_t *proc_count) |
bool | os_proc_running (int pid) |
Return true if process pid is running. More... | |
int os_proc_children | ( | int | ppid, |
int ** | proc_list, | ||
size_t * | proc_count | ||
) |
Gets the process ids of the immediate children of process ppid
.
ppid | Process to inspect. | |
[out,allocated] | proc_list Child process ids. | |
[out] | proc_count | Number of child processes. |
bool os_proc_running | ( | int | pid | ) |
Return true if process pid
is running.
bool os_proc_tree_kill | ( | int | pid, |
int | sig | ||
) |
Kills process group where pid
is the process group leader.
OS process functions
psutil is a good reference for cross-platform syscall voodoo: https://github.com/giampaolo/psutil/tree/master/psutil/arch