Modified: trunk/launchd/src/launchd_runtime.c (23361 => 23362)
--- trunk/launchd/src/launchd_runtime.c 2007-09-08 21:56:28 UTC (rev 23361)
+++ trunk/launchd/src/launchd_runtime.c 2007-09-09 19:09:56 UTC (rev 23362)
@@ -146,9 +146,6 @@
pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN);
launchd_assert(pthread_create(&demand_thread, &attr, mport_demand_loop, NULL) == 0);
pthread_attr_destroy(&attr);
-
- runtime_openlog(getprogname(), LOG_PID|LOG_CONS, LOG_LAUNCHD);
- runtime_setlogmask(LOG_UPTO(/* LOG_DEBUG */ LOG_NOTICE));
}
void
@@ -1027,12 +1024,6 @@
static FILE *ourlogfile;
void
-runtime_openlog(const char *ident, int logopt, int facility)
-{
- openlog(ident, logopt, facility);
-}
-
-void
runtime_closelog(void)
{
if (ourlogfile) {
@@ -1051,7 +1042,8 @@
}
}
-static int internal_mask_pri;
+static int internal_mask_pri = LOG_UPTO(LOG_NOTICE);
+//static int internal_mask_pri = LOG_UPTO(LOG_DEBUG);
int
runtime_setlogmask(int maskpri)
Modified: trunk/launchd/src/launchd_runtime.h (23361 => 23362)
--- trunk/launchd/src/launchd_runtime.h 2007-09-08 21:56:28 UTC (rev 23361)
+++ trunk/launchd/src/launchd_runtime.h 2007-09-09 19:09:56 UTC (rev 23362)
@@ -77,8 +77,6 @@
pid_t runtime_fork(mach_port_t bsport);
-void runtime_openlog(const char *ident, int logopt, int facility);
-void runtime_closelog(void);
kern_return_t runtime_log_forward(uid_t forward_uid, gid_t forward_gid, vm_offset_t inval, mach_msg_type_number_t invalCnt);
kern_return_t runtime_log_drain(mach_port_t srp, vm_offset_t *outval, mach_msg_type_number_t *outvalCnt);
@@ -95,6 +93,7 @@
};
int runtime_setlogmask(int maskpri);
+void runtime_closelog(void);
void runtime_syslog(int pri, const char *message, ...) __attribute__((format(printf, 2, 3)));
void runtime_vsyslog(struct runtime_syslog_attr *attr, const char *message, va_list args) __attribute__((format(printf, 2, 0)));