OpenVAS Scanner
7.0.0~git
|
Go to the documentation of this file.
44 #define G_LOG_DOMAIN "sd main"
65 ret = kill (
pid, SIGTERM);
71 if (waitpid (
pid, NULL, WNOHANG) >= 0)
106 srand48 (getpid () + getppid () + (
long) time (NULL));
107 (*function) (argument);
111 g_error (
"Error : could not fork ! Error : %s", strerror (errno));
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 ch...
headerfile for sighand.c.
void(*)(int) openvas_signal(int signum, void(*handler)(int))
void make_em_die(int sig)
void sighand_segv(int given_signal)
static void init_child_signal_handlers()
pid_t create_process(process_func_t function, void *argument)
Create a new process (fork).
void(* process_func_t)(void *)