mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
Util
- Closed dangling pipes in execute (), resolving problems when a hook script forks.
This commit is contained in:
parent
3484e44c7d
commit
af772f4c49
1 changed files with 2 additions and 0 deletions
|
@ -299,9 +299,11 @@ int execute (
|
|||
|
||||
if (dup2 (pin[0], STDIN_FILENO) == -1)
|
||||
throw std::string (std::strerror (errno));
|
||||
close (pin[0]);
|
||||
|
||||
if (dup2 (pout[1], STDOUT_FILENO) == -1)
|
||||
throw std::string (std::strerror (errno));
|
||||
close (pout[1]);
|
||||
|
||||
char** argv = new char* [args.size () + 2];
|
||||
argv[0] = (char*) executable.c_str ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue