mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Util
- 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:
parent
bfc6e38851
commit
5b7e6df00b
2 changed files with 18 additions and 17 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue