summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 3b2644b..9d03fbc 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -120,6 +120,8 @@ static bool shell_command_do_exec(const fastd_shell_command_t *command, const fa
/* child process */
+ fastd_close_all_fds();
+
if (chdir(command->dir))
_exit(126);