summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index d8cb17f..43ec24f 100644
--- a/main.c
+++ b/main.c
@@ -152,7 +152,7 @@ netifd_start_process(const char **argv, char **env, struct netifd_process *proc)
}
}
if (proc->dir_fd >= 0)
- fchdir(proc->dir_fd);
+ if (fchdir(proc->dir_fd)) {}
close(pfds[0]);