indexer bumping: check the status of touch command to avoid cc warning
This commit is contained in:
parent
abc45bc156
commit
02181fbb84
@ -502,9 +502,13 @@ static void lockorexit(Pidfile *pidfile, RclConfig *config)
|
||||
string cmd("touch ");
|
||||
string path = path_cat(config->getConfDir(), "recoll.conf");
|
||||
cmd += path;
|
||||
system(cmd.c_str());
|
||||
cerr << "Monitoring indexer process was notified of "
|
||||
"indexing request\n";
|
||||
int status;
|
||||
if ((status = system(cmd.c_str()))) {
|
||||
cerr << cmd << " failed with status " << status << endl;
|
||||
} else {
|
||||
cerr << "Monitoring indexer process was notified of "
|
||||
"indexing request\n";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
|
||||
@ -303,7 +303,10 @@ void RclMain::bumpIndexing()
|
||||
string cmd("touch ");
|
||||
string path = path_cat(theconfig->getConfDir(), "recoll.conf");
|
||||
cmd += path;
|
||||
system(cmd.c_str());
|
||||
int status;
|
||||
if ((status = system(cmd.c_str()))) {
|
||||
cerr << cmd << " failed with status " << status << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user