random NOMMU fixes. compressed --help really does work for NOMMU! /me happy

This commit is contained in:
Denis Vlasenko
2007-04-10 23:32:37 +00:00
parent 80d14beae9
commit f1a7141cfc
5 changed files with 28 additions and 9 deletions

View File

@@ -158,12 +158,15 @@ int spawn_and_wait(char **argv)
if (rc)
goto w;
/* child */
xfunc_error_retval = EXIT_FAILURE;
current_applet = a;
run_current_applet_and_exit(argc, argv);
#endif
}
rc = spawn(argv);
#ifndef BB_NOMMU
w:
#endif
return wait4pid(rc);
#else /* !FEATURE_PREFER_APPLETS */
return wait4pid(spawn(argv));