OpenVAS Scanner
7.0.1~git
|
processes.c header. More...
#include <sys/types.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | process_func_t) (void *) |
Functions | |
pid_t | create_process (process_func_t, void *) |
Create a new process (fork). More... | |
int | terminate_process (pid_t) |
Send SIGTERM to the pid process. Try to wait the the process. In case of the process has still not change the state, it sends SIGKILL to the process and must be waited later to avoid leaving a zombie process. More... | |
processes.c header.
Definition in file processes.h.
typedef void(* process_func_t) (void *) |
Definition at line 31 of file processes.h.
pid_t create_process | ( | process_func_t | , |
void * | |||
) |
Create a new process (fork).
Definition at line 97 of file processes.c.
References init_child_signal_handlers(), and pid.
Referenced by attack_network(), nasl_plugin_launch(), and plugins_init().
int terminate_process | ( | pid_t | pid | ) |
Send SIGTERM to the pid process. Try to wait the the process. In case of the process has still not change the state, it sends SIGKILL to the process and must be waited later to avoid leaving a zombie process.
[in] | pid | Process id to terminate. |
Definition at line 58 of file processes.c.
References pid.
Referenced by pluginlaunch_stop(), and update_running_processes().