|
|
@ -70,14 +70,13 @@ int main(int argc, char **argv)
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, home);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
strcat(filename, configfile);
|
|
|
|
|
|
|
|
|
|
|
|
printf("[kdetcompmgr] reading '%s' as kompmgr pidfile\n\n", filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Now that we did all that by way of introduction...read the file!
|
|
|
|
// Now that we did all that by way of introduction...read the file!
|
|
|
|
FILE *pFile;
|
|
|
|
FILE *pFile;
|
|
|
|
char buffer[255];
|
|
|
|
char buffer[255];
|
|
|
|
pFile = fopen(filename, "r");
|
|
|
|
pFile = fopen(filename, "r");
|
|
|
|
int kompmgrpid = 0;
|
|
|
|
int kompmgrpid = 0;
|
|
|
|
if (pFile) {
|
|
|
|
if (pFile) {
|
|
|
|
|
|
|
|
printf("[kdetcompmgr] Using '%s' as kompmgr pidfile\n", filename);
|
|
|
|
// obtain file size
|
|
|
|
// obtain file size
|
|
|
|
fseek (pFile , 0 , SEEK_END);
|
|
|
|
fseek (pFile , 0 , SEEK_END);
|
|
|
|
unsigned long lSize = ftell (pFile);
|
|
|
|
unsigned long lSize = ftell (pFile);
|
|
|
|