diff options
Diffstat (limited to 'src/hooks.c')
-rw-r--r-- | src/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks.c b/src/hooks.c index 35d8a1a..7bfd548 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -51,7 +51,7 @@ int run_hook(const char *name) arg[0] = hook_path; arg[1] = NULL; - if ((pid = shell_exec(&pin, &pout, &perr, *arg, arg))) { + if ((pid = shell_exec(&pin, &pout, &perr, 1, *arg, arg))) { ret = child_wait(&pin, &pout, &perr, pid); if (ret > 0 && WIFEXITED(ret)) { asprintf(&mesg, "%s hook: exit status %d", |