← Commit list

fa6b5e62c

Rob Landley
Rob Landley
2006-05-23
SOURCE BUG Duration: 55s

Subject

It takes _talent_ to implement a version of nohup that does everything except the actual blocking of HUP.

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 →

coreutils/nohup.c+2 -1
@@ -10,6 +10,7 @@
*/
#include <fcntl.h>
+#include <signal.h>
#include <unistd.h>
#include "busybox.h"
@@ -44,8 +45,8 @@ int nohup_main(int argc, char *argv[])
temp = isatty(2);
if (temp) fdprintf(2,"Writing to %s\n", home ? home : nohupout);
dup2(temp ? 1 : nullfd, 2);
-
close(nullfd);
+ signal (SIGHUP, SIG_IGN);
// Exec our new program.