← Commit list

b180e5a76

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-05-26
SOURCE BUG Duration: 67s

Subject

- use portability wrapper define bb_setpgrp.

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 →

init/init_shared.c+2 -1
@@ -9,6 +9,7 @@
#include <signal.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/reboot.h>
@@ -26,7 +27,7 @@ int bb_shutdown_system(unsigned long magic)
/* Don't kill ourself */
signal(SIGTERM,SIG_IGN);
signal(SIGHUP,SIG_IGN);
- setpgrp();
+ bb_setpgrp;
/* Allow Ctrl-Alt-Del to reboot system. */
#ifndef RB_ENABLE_CAD
loginutils/login.c+1 -1
@@ -147,7 +147,7 @@ int login_main(int argc, char **argv)
else
snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty );
- setpgrp();
+ bb_setpgrp;
openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH );
shell/msh.c+1 -1
@@ -3031,7 +3031,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp)
} else {
/* put non-interactive processes into a different process group.
* we don't support jobs, but this is at least sane: see Bug 659 */
- setpgrp();
+ bb_setpgrp;
}
if (t->type == TPAREN)