← Commit list

b83175367

Paul Fox
Paul Fox
2005-08-01
SOURCE BUG Duration: 5s

Subject

commiting: 0000073: Add option to inetd applet to run in foreground this option was already there for uclinux -- this just exposes it in the normal case as well.

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

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 →

include/usage.h+2 -1
@@ -1193,10 +1193,11 @@
"\t-f\tforce de/configuration"
#define inetd_trivial_usage \
- "[-q len] [conf]"
+ "[-f] [-q len] [conf]"
#define inetd_full_usage \
"Listens for network connections and launches programs\n\n" \
"Option:\n" \
+ "\t-f\tRun as a foreground progress\n" \
"\t-q\tSets the size of the socket listen queue to\n" \
"\t\tthe specified value. Default is 128"
networking/inetd.c+2 -5
@@ -758,17 +758,14 @@ extern int inetd_main(int argc, char *argv[])
LastArg = environ[-1] + strlen(environ[-1]);
#endif
-#if defined(__uClinux__)
opt = bb_getopt_ulflags(argc, argv, "q:f", &sq);
if (!(opt & 2)) {
daemon(0, 0);
+#if defined(__uClinux__)
/* reexec for vfork() do continue parent */
vfork_daemon_rexec(argc, argv, "-f");
- }
-#else
- opt = bb_getopt_ulflags(argc, argv, "q:", &sq);
- daemon(0, 0);
#endif /* uClinux */
+ }
if(opt & 1) {
global_queuelen = atoi(sq);