add PID file handling to clients (including signal handling to remove the files)

This commit is contained in:
marschap
2008-01-06 17:03:51 +00:00
parent 7db002742e
commit c68e1aca72
12 changed files with 185 additions and 28 deletions
+9 -1
View File
@@ -33,7 +33,7 @@ static int read_connect_string(void);
static int split(char *str, char delim, char *parts[], int maxparts);
int connect_and_setup(void)
int setup_connection(void)
{
char buf[200];
int i;
@@ -83,6 +83,14 @@ int connect_and_setup(void)
}
int teardown_connection(void)
{
sock_close(sock);
return 0;
}
static int read_connect_string(void)
{
char buf[8192];