Commit 407dfc75 authored by topjohnwu's avatar topjohnwu

Always write 0 to fd

parent a8e4e077
...@@ -457,8 +457,8 @@ void HookContext::nativeSpecializeAppProcess_pre() { ...@@ -457,8 +457,8 @@ void HookContext::nativeSpecializeAppProcess_pre() {
state[DO_UNMOUNT] = true; state[DO_UNMOUNT] = true;
} else if (fd >= 0) { } else if (fd >= 0) {
run_modules_pre(module_fds); run_modules_pre(module_fds);
write_int(fd, 0);
} }
write_int(fd, 0);
close(fd); close(fd);
close_fds(); close_fds();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment