#define VERSION "2.3.2"
+#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <sys/resource.h>
-#include "busybox.h"
-
#define arysize(ary) (sizeof(ary)/sizeof((ary)[0]))
#ifndef CRONTABS
*/
if (!(opt & 4)) {
-#if defined(__uClinux__)
+#ifdef BB_NOMMU
/* reexec for vfork() do continue parent */
vfork_daemon_rexec(1, 0, ac, av, "-f");
-#else /* uClinux */
+#else
bb_xdaemon(1, 0);
-#endif /* uClinux */
+#endif
}
(void) startlogger(); /* need if syslog mode selected */
bb_fflush_stdout_and_exit(EXIT_SUCCESS); /* not reached */
}
-#if ENABLE_DEBUG_CROND_OPTION || ENABLE_FEATURE_CROND_CALL_SENDMAIL
-/*
- write to temp file..
-*/
-static void fdprintf(int fd, const char *ctl, ...)
-{
- va_list va;
-
- va_start(va, ctl);
- vdprintf(fd, ctl, va);
- va_end(va);
-}
-#endif
-
-
static int ChangeUser(const char *user)
{
struct passwd *pas;