-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
endless loop with respawn with inittab #22
Comments
(in busybox/init/init.c) around this area, child after vfork before exec, stack becomes corrupted and |
with
this might not be related. |
when hush is invoked from init (via inittab), the argv[0] variable on hush_main is Then, in the profile file, there is so, it won't stop until memory failures occur. this diff (not upstreamed) to busybox fixes this issue. diff --git a/shell/hush.c b/shell/hush.c
index 6b6ec7c6b..ae027dcae 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -10337,6 +10337,8 @@ int hush_main(int argc, char **argv)
_exit(0);
}
G.argv0_for_re_execing = argv[0];
+ if (G.argv0_for_re_execing[0] == '-')
+ G.argv0_for_re_execing += 1;
#endif
#if ENABLE_HUSH_TRAP
# if ENABLE_HUSH_FUNCTIONS
|
-
before/bin/sh
might be the issueThe text was updated successfully, but these errors were encountered: