Changeset 23362
- Timestamp:
- 09/09/07 12:09:56 (15 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 2 modified
-
launchd_runtime.c (modified) (3 diffs)
-
launchd_runtime.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_runtime.c
r23359 r23362 147 147 launchd_assert(pthread_create(&demand_thread, &attr, mport_demand_loop, NULL) == 0); 148 148 pthread_attr_destroy(&attr); 149 150 runtime_openlog(getprogname(), LOG_PID|LOG_CONS, LOG_LAUNCHD);151 runtime_setlogmask(LOG_UPTO(/* LOG_DEBUG */ LOG_NOTICE));152 149 } 153 150 … … 1028 1025 1029 1026 void 1030 runtime_openlog(const char *ident, int logopt, int facility)1031 {1032 openlog(ident, logopt, facility);1033 }1034 1035 void1036 1027 runtime_closelog(void) 1037 1028 { … … 1052 1043 } 1053 1044 1054 static int internal_mask_pri; 1045 static int internal_mask_pri = LOG_UPTO(LOG_NOTICE); 1046 //static int internal_mask_pri = LOG_UPTO(LOG_DEBUG); 1055 1047 1056 1048 int -
trunk/launchd/src/launchd_runtime.h
r23359 r23362 78 78 pid_t runtime_fork(mach_port_t bsport); 79 79 80 void runtime_openlog(const char *ident, int logopt, int facility);81 void runtime_closelog(void);82 80 kern_return_t runtime_log_forward(uid_t forward_uid, gid_t forward_gid, vm_offset_t inval, mach_msg_type_number_t invalCnt); 83 81 kern_return_t runtime_log_drain(mach_port_t srp, vm_offset_t *outval, mach_msg_type_number_t *outvalCnt); … … 96 94 97 95 int runtime_setlogmask(int maskpri); 96 void runtime_closelog(void); 98 97 void runtime_syslog(int pri, const char *message, ...) __attribute__((format(printf, 2, 3))); 99 98 void runtime_vsyslog(struct runtime_syslog_attr *attr, const char *message, va_list args) __attribute__((format(printf, 2, 0)));

