Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
daemon.c File Reference
#include <errno.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "salad/daemon.h"

Functions

void sld_daemon_daemonize (char *pid_file_name, char *runas_user, char *runas_group)
 Executes code contained in sld_daemon_start() as a background process using the specified options. More...
 
pid_t sld_daemon_write_pid_file (char *pid_file_name)
 Writes the PID (process ID) to the specified file. More...