Go to the documentation of this file.
13 #ifndef OPENVAS_PROCESSES_H
14 #define OPENVAS_PROCESSES_H
16 #include "../misc/ipc.h"
18 #include <sys/types.h>
const struct ipc_contexts * procs_get_ipc_contexts(void)
returns ipc_contexts.
pid_t create_ipc_process(ipc_process_func func, void *args)
initializes a communication channels and calls a function with a new process
void(* process_func_t)(void *)
void(* ipc_process_func)(struct ipc_context *, void *)
int procs_cleanup_children(void)
iterates through ipcc and verify if a child is stopped or killed to free the file handler.
int terminate_process(pid_t pid)
Terminates a given process. If termination does not work, the process will get killed....
void procs_terminate_childs(void)
This function terminates all processes spawned with create_process. Calls terminate_child for each pr...