Use setpgid(0,0) instead of setpgid(0,getpid()) to walk around apparent issue in dragonfly bsd

This commit is contained in:
Jean-Francois Dockes
2017-06-30 15:25:30 +02:00
parent e5a72da783
commit d808c927f0
2 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ static MyUpdater *updater;
static void sigcleanup(int sig)
{
fprintf(stderr, "Got signal, registering stop request\n");
LOGDEB("Got signal, registering stop request\n");
cerr << "Recollindex: got signal " << sig << ", registering stop request\n";
LOGDEB("Got signal " << sig << ", registering stop request\n");
CancelCheck::instance().setCancel();
stopindexing = 1;
}