OpenVAS Scanner
7.0.0~git
|
pluginlaunch.c header. More...
Go to the source code of this file.
Functions | |
void | pluginlaunch_init (const char *) |
void | pluginlaunch_wait (kb_t) |
Waits and 'pushes' processes until num_running_processes is 0. More... | |
void | pluginlaunch_wait_for_free_process (kb_t) |
Waits and 'pushes' processes until the number of running processes has changed. More... | |
void | pluginlaunch_stop () |
int | plugin_launch (struct scan_globals *, struct scheduler_plugin *, struct in6_addr *, GSList *, kb_t, nvti_t *) |
void | pluginlaunch_disable_parallel_checks (void) |
void | pluginlaunch_enable_parallel_checks (void) |
int | wait_for_children (void) |
pluginlaunch.c header.
Definition in file pluginlaunch.h.
int plugin_launch | ( | struct scan_globals * | globals, |
struct scheduler_plugin * | plugin, | ||
struct in6_addr * | ip, | ||
GSList * | vhosts, | ||
kb_t | kb, | ||
nvti_t * | nvti | ||
) |
Definition at line 343 of file pluginlaunch.c.
References nasl_plugin_launch(), next_free_process(), num_running_processes, scheduler_plugin::oid, running::pid, pid, running::plugin, PLUGIN_STATUS_UNRUN, plugin_timeout(), pluginlaunch_wait_for_free_process(), processes, scheduler_plugin::running_state, and running::timeout.
Referenced by launch_plugin().
void pluginlaunch_disable_parallel_checks | ( | void | ) |
Definition at line 290 of file pluginlaunch.c.
References max_running_processes.
Referenced by get_next_in_range().
void pluginlaunch_enable_parallel_checks | ( | void | ) |
Definition at line 296 of file pluginlaunch.c.
References max_running_processes, and old_max_running_processes.
Referenced by get_next_in_range().
void pluginlaunch_init | ( | const char * | ) |
Definition at line 265 of file pluginlaunch.c.
References get_max_checks_number(), hostname, MAX_PROCESSES, max_running_processes, non_simult_ports, num_running_processes, old_max_running_processes, and processes.
Referenced by attack_host().
void pluginlaunch_stop | ( | ) |
Definition at line 302 of file pluginlaunch.c.
References MAX_PROCESSES, num_running_processes, pid, running::plugin, PLUGIN_STATUS_DONE, processes, scheduler_plugin::running_state, and terminate_process().
Referenced by attack_host(), handle_scan_stop_signal(), and launch_plugin().
void pluginlaunch_wait | ( | kb_t | ) |
Waits and 'pushes' processes until num_running_processes is 0.
Definition at line 370 of file pluginlaunch.c.
References num_running_processes, and update_running_processes().
Referenced by attack_host().
void pluginlaunch_wait_for_free_process | ( | kb_t | ) |
Waits and 'pushes' processes until the number of running processes has changed.
Definition at line 403 of file pluginlaunch.c.
References max_running_processes, num_running_processes, timeout_running_processes(), and update_running_processes().
Referenced by attack_host(), and plugin_launch().
int wait_for_children | ( | void | ) |