Fixed push-out shutting down the logger, added debug message for logger exiting.

This commit is contained in:
Thulinma 2016-05-23 16:59:39 +02:00
parent 5fbf4dd23b
commit 69eea675eb
2 changed files with 2 additions and 3 deletions

View file

@ -385,10 +385,8 @@ pid_t Util::startPush(std::string & streamname, std::string & target) {
(char*)NULL (char*)NULL
}; };
int stdIn = 0;
int stdOut = 1;
int stdErr = 2; int stdErr = 2;
return Util::Procs::StartPiped(argv, &stdIn, &stdOut, &stdErr); return Util::Procs::StartPiped(argv, 0, 0, &stdErr);
} }

View file

@ -75,6 +75,7 @@ namespace Controller {
printf("%s", buf); printf("%s", buf);
} }
} }
Log("LOG", "Logger exiting");
fclose(output); fclose(output);
close((long long int)err); close((long long int)err);
} }