OpenVAS Scanner
5.1.3
|
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <strings.h>
#include <errno.h>
#include <sys/time.h>
#include <openvas/misc/network.h>
#include <openvas/misc/nvt_categories.h>
#include <openvas/misc/internal_com.h>
#include <openvas/misc/prefs.h>
#include <openvas/base/nvticache.h>
#include "pluginload.h"
#include "utils.h"
#include "log.h"
#include "sighand.h"
#include "processes.h"
#include "pluginscheduler.h"
#include "plugs_req.h"
Go to the source code of this file.
Data Structures | |
struct | running |
Structure to represent a process in the sense of a running NVT. More... | |
Macros | |
#define | MAX_PROCESSES 32 |
'Hard' limit of the max. number of concurrent plugins per host. More... | |
Functions | |
void | wait_for_children () |
void | pluginlaunch_init (const char *host) |
void | pluginlaunch_disable_parrallel_checks (void) |
void | pluginlaunch_enable_parrallel_checks (void) |
void | pluginlaunch_stop (int soft_stop) |
int | plugin_launch (struct arglist *globals, struct scheduler_plugin *plugin, struct host_info *hostinfo, kb_t kb, char *name) |
void | pluginlaunch_wait (void) |
Waits and 'pushes' processes until num_running_processes is 0. More... | |
void | pluginlaunch_child_cleanup (void) |
Cleanup file descriptors used by the processes array. To be called by the child process running the plugin. More... | |
void | pluginlaunch_wait_for_free_process (void) |
Waits and 'pushes' processes until the number of running processes has changed. More... | |
Variables | |
const char * | hostname = NULL |
#define MAX_PROCESSES 32 |
'Hard' limit of the max. number of concurrent plugins per host.
Definition at line 52 of file pluginlaunch.c.
int plugin_launch | ( | struct arglist * | globals, |
struct scheduler_plugin * | plugin, | ||
struct host_info * | hostinfo, | ||
kb_t | kb, | ||
char * | name | ||
) |
Definition at line 414 of file pluginlaunch.c.
void pluginlaunch_child_cleanup | ( | void | ) |
Cleanup file descriptors used by the processes array. To be called by the child process running the plugin.
Definition at line 486 of file pluginlaunch.c.
References MAX_PROCESSES.
void pluginlaunch_disable_parrallel_checks | ( | void | ) |
Definition at line 366 of file pluginlaunch.c.
void pluginlaunch_enable_parrallel_checks | ( | void | ) |
Definition at line 372 of file pluginlaunch.c.
void pluginlaunch_init | ( | const char * | host | ) |
Definition at line 344 of file pluginlaunch.c.
void pluginlaunch_stop | ( | int | soft_stop | ) |
Definition at line 379 of file pluginlaunch.c.
void pluginlaunch_wait | ( | void | ) |
Waits and 'pushes' processes until num_running_processes is 0.
Definition at line 470 of file pluginlaunch.c.
References wait_for_children().
void pluginlaunch_wait_for_free_process | ( | void | ) |
Waits and 'pushes' processes until the number of running processes has changed.
Definition at line 499 of file pluginlaunch.c.
Referenced by plugin_next_unrun_dependency().
void wait_for_children | ( | void | ) |
Definition at line 126 of file pluginlaunch.c.
References MAX_PROCESSES.
Referenced by pluginlaunch_wait().
const char* hostname = NULL |
Definition at line 81 of file pluginlaunch.c.