Loading init/init.c +1 −0 Original line number Diff line number Diff line Loading @@ -240,6 +240,7 @@ void service_start(struct service *svc, const char *dynamic_args) char tmp[32]; int fd, sz; umask(077); if (properties_inited()) { get_property_workspace(&fd, &sz); sprintf(tmp, "%d,%d", dup(fd), sz); Loading init/ueventd.c +12 −5 Original line number Diff line number Diff line Loading @@ -53,6 +53,13 @@ int ueventd_main(int argc, char **argv) int nr; char tmp[32]; /* * init sets the umask to 077 for forked processes. We need to * create files with exact permissions, without modification by * the umask. */ umask(000); /* Prevent fire-and-forget children from becoming zombies. * If we should need to wait() for some children in the future * (as opposed to none right now), double-forking here instead Loading Loading
init/init.c +1 −0 Original line number Diff line number Diff line Loading @@ -240,6 +240,7 @@ void service_start(struct service *svc, const char *dynamic_args) char tmp[32]; int fd, sz; umask(077); if (properties_inited()) { get_property_workspace(&fd, &sz); sprintf(tmp, "%d,%d", dup(fd), sz); Loading
init/ueventd.c +12 −5 Original line number Diff line number Diff line Loading @@ -53,6 +53,13 @@ int ueventd_main(int argc, char **argv) int nr; char tmp[32]; /* * init sets the umask to 077 for forked processes. We need to * create files with exact permissions, without modification by * the umask. */ umask(000); /* Prevent fire-and-forget children from becoming zombies. * If we should need to wait() for some children in the future * (as opposed to none right now), double-forking here instead Loading