|
|
@ -124,8 +124,6 @@ void write_pid_file(pid_t pid)
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
|
|
|
|
|
|
|
|
printf("writing '%s' as pidfile\n\n", filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* now that we did all that by way of introduction...write the file! */
|
|
|
|
/* now that we did all that by way of introduction...write the file! */
|
|
|
|
FILE *pFile;
|
|
|
|
FILE *pFile;
|
|
|
|
char buffer[255];
|
|
|
|
char buffer[255];
|
|
|
@ -163,8 +161,6 @@ void delete_pid_file()
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
|
|
|
|
|
|
|
|
printf("deleting '%s' as pidfile\n\n", filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* now that we did all that by way of introduction...delete the file! */
|
|
|
|
/* now that we did all that by way of introduction...delete the file! */
|
|
|
|
unlink(filename);
|
|
|
|
unlink(filename);
|
|
|
|
|
|
|
|
|
|
|
|