mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Hooks
- Code cleanup.
This commit is contained in:
parent
820c327a81
commit
273d9fe070
1 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ int Hooks::execute (
|
||||||
const std::string& input,
|
const std::string& input,
|
||||||
std::string& output)
|
std::string& output)
|
||||||
{
|
{
|
||||||
// TODO Improve error hnadling.
|
// TODO Improve error handling.
|
||||||
// TODO Check errors.
|
// TODO Check errors.
|
||||||
|
|
||||||
int pin[2], pout[2];
|
int pin[2], pout[2];
|
||||||
|
@ -365,7 +365,7 @@ int Hooks::execute (
|
||||||
// This is only reached in the child
|
// This is only reached in the child
|
||||||
dup2 (pin[0], STDIN_FILENO);
|
dup2 (pin[0], STDIN_FILENO);
|
||||||
dup2 (pout[1], STDOUT_FILENO);
|
dup2 (pout[1], STDOUT_FILENO);
|
||||||
if (!execl (command.c_str (), command.c_str (), (char*) NULL))
|
if (! execl (command.c_str (), command.c_str (), (char*) NULL))
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue