- The execute() function needed to fill the STDIN pipe before the fork, not
  after the fork, so the data is ready before the child process reads.
This commit is contained in:
Paul Beckingham 2014-09-14 17:43:19 -04:00
parent bfc6e38851
commit 5b7e6df00b
2 changed files with 18 additions and 17 deletions

View file

@ -160,7 +160,7 @@ void Hooks::onExit ()
std::vector <Task> changes;
context.tdb2.get_changes (changes);
std::string input;
std::string input = "";
std::vector <Task>::const_iterator t;
for (t = changes.begin (); t != changes.end (); ++t)
input += t->composeJSON () + "\n";