Start of control socket implementation.

This commit is contained in:
Guus Sliepen 2007-05-18 16:52:34 +00:00
parent 6ded8a3f08
commit 01f47c46af
6 changed files with 499 additions and 12 deletions

View file

@ -78,6 +78,7 @@ bool use_logfile = false;
char *identname = NULL; /* program name for syslog */
char *pidfilename = NULL; /* pid file location */
char *controlfilename = NULL; /* pid file location */
char *logfilename = NULL; /* log file location */
char **g_argv; /* a copy of the cmdline arguments */
@ -378,6 +379,8 @@ static void make_names(void)
if(!pidfilename)
asprintf(&pidfilename, LOCALSTATEDIR "/run/%s.pid", identname);
asprintf(&controlfilename, LOCALSTATEDIR "/run/%s.control", identname);
if(!logfilename)
asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);