[launchd-changes] [23362] trunk/launchd/src

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 9 12:09:56 PDT 2007


Revision: 23362
          http://trac.macosforge.org/projects/launchd/changeset/23362
Author:   zarzycki at apple.com
Date:     2007-09-09 12:09:56 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
Small logging updates.

Modified Paths:
--------------
    trunk/launchd/src/launchd_runtime.c
    trunk/launchd/src/launchd_runtime.h

Modified: trunk/launchd/src/launchd_runtime.c
===================================================================
--- 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
===================================================================
--- 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)));
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070909/60097cfc/attachment.html


More information about the launchd-changes mailing list