|
|
|
@ -70,14 +70,13 @@ int main(int argc, char **argv)
|
|
|
|
|
strcat(filename, home);
|
|
|
|
|
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!
|
|
|
|
|
FILE *pFile;
|
|
|
|
|
char buffer[255];
|
|
|
|
|
pFile = fopen(filename, "r");
|
|
|
|
|
int kompmgrpid = 0;
|
|
|
|
|
if (pFile) {
|
|
|
|
|
printf("[kdetcompmgr] Using '%s' as kompmgr pidfile\n", filename);
|
|
|
|
|
// obtain file size
|
|
|
|
|
fseek (pFile , 0 , SEEK_END);
|
|
|
|
|
unsigned long lSize = ftell (pFile);
|
|
|
|
|