diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-15 17:42:25 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-15 17:42:25 +0200 |
commit | 8c4dface377cf03de38c642b90940530e47296d3 (patch) | |
tree | 6383e3101953887dadf02d760de4d2d8cbee0e92 /main.c | |
parent | 39d99df0854b33e441b08aa18aa80817a50ef22c (diff) |
move netifd_start_process dir_fd to the data structure
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ netifd_process_cb(struct uloop_process *proc, int ret) } int -netifd_start_process(const char **argv, char **env, int dir_fd, struct netifd_process *proc) +netifd_start_process(const char **argv, char **env, struct netifd_process *proc) { int pid; @@ -42,8 +42,8 @@ netifd_start_process(const char **argv, char **env, int dir_fd, struct netifd_pr env++; } } - if (dir_fd >= 0) - fchdir(dir_fd); + if (proc->dir_fd >= 0) + fchdir(proc->dir_fd); execvp(argv[0], (char **) argv); exit(127); } |