Always write 0 to fd

This commit is contained in:
topjohnwu 2022-01-23 04:19:07 -08:00
parent a8e4e077ec
commit 407dfc7547

View File

@ -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();