Functions
process.c File Reference
#include <uv.h>
#include "nvim/globals.h"
#include "nvim/log.h"
#include "nvim/os/process.h"
#include "nvim/os/os.h"
#include "nvim/os/os_defs.h"
#include "nvim/api/private/helpers.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)
 

Function Documentation

int os_proc_children ( int  ppid,
int **  proc_list,
size_t *  proc_count 
)

Gets the process ids of the immediate children of process ppid.

Parameters
ppidProcess to inspect.
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