OpenVAS Libraries  9.0.1
Functions
pidfile.h File Reference
#include <glib.h>

Go to the source code of this file.

Functions

int pidfile_create (gchar *)
 Create a PID-file. More...
 
void pidfile_remove (gchar *)
 Remove PID file. More...
 

Function Documentation

◆ pidfile_create()

int pidfile_create ( gchar *  daemon_name)

Create a PID-file.

A standard PID file will be created for the given daemon name.

Parameters
[in]daemon_nameThe name of the daemon (e.g. "openvasmd")
Returns
0 for success, anything else indicates an error.

◆ pidfile_remove()

void pidfile_remove ( gchar *  daemon_name)

Remove PID file.

Parameters
[in]daemon_nameThe name of the daemon (e.g. "openvasmd")