[BusyBox-cvs] busybox/sysklogd klogd.c, 1.16, 1.17 syslogd.c, 1.99, 1.100

Erik Andersen andersen at busybox.net
Mon Jul 28 07:40:43 UTC 2003


Update of /var/cvs/busybox/sysklogd
In directory winder:/tmp/cvs-serv27801/sysklogd

Modified Files:
	klogd.c syslogd.c 
Log Message:
last_patch95 from vodz:

Hi.

Last patch have new libbb function
vfork_rexec() for can use daemon() to uClinux system.
This patched daemons: syslog, klogd, inetd, crond.
This not tested! I havn`t this systems.
Also. Previous patch for feature request MD5 crypt password for
httpd don`t sended to this mailist on 07/15/03
(mailist have Pytom module problem?).
The previous patch included, and have testing.


--w
vodz



Index: klogd.c
===================================================================
RCS file: /var/cvs/busybox/sysklogd/klogd.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- klogd.c	22 Jul 2003 08:56:54 -0000	1.16
+++ klogd.c	28 Jul 2003 07:40:39 -0000	1.17
@@ -150,8 +150,8 @@
 #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
 		if (daemon(0, 1) < 0)
 			bb_perror_msg_and_die("daemon");
-#else
-		bb_error_msg_and_die("daemon not supported");
+#if defined(__uClinux__)
+		vfork_daemon_rexec(argc, argv, "-n");
 #endif
 	}
 	doKlogd(console_log_level);

Index: syslogd.c
===================================================================
RCS file: /var/cvs/busybox/sysklogd/syslogd.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- syslogd.c	22 Jul 2003 22:15:21 -0000	1.99
+++ syslogd.c	28 Jul 2003 07:40:39 -0000	1.100
@@ -632,11 +632,12 @@
 
 	umask(0);
 
-#if ! defined(__uClinux__)
 	if ((doFork == TRUE) && (daemon(0, 1) < 0)) {
 		bb_perror_msg_and_die("daemon");
-	}
+#if ! defined(__uClinux__)
+		vfork_daemon_rexec(argc, argv, "-n");
 #endif
+	}
 	doSyslogd();
 
 	return EXIT_SUCCESS;




More information about the busybox-cvs mailing list