← Commit list

cfd392bea

Denys Vlasenko
Denys Vlasenko
2017-08-03
SUCCESS Duration: 141s

Subject

ash: add a fixme comment at run_nofork_applet

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+3 -1
@@ -9918,11 +9918,13 @@ evalcommand(union node *cmd, int flags)
if (applet_no >= 0 && APPLET_IS_NOFORK(applet_no)) {
listsetvar(varlist.list, VEXPORT|VSTACK);
/* run <applet>_main() */
+//FIXME: do we need INT_OFF / INT_ON here?
+//wouldn't open files and allocations leak on ^C otherwise?
status = run_nofork_applet(applet_no, argv);
break;
}
#endif
- /* Can we avoid forking off? For example, very last command
+ /* Can we avoid forking? For example, very last command
* in a script or a subshell does not need forking,
* we can just exec it.
*/