summaryrefslogtreecommitdiff
path: root/launchd
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-11 00:32:51 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-11 00:32:51 -0700
commit2771fbf28d6ee6cce09df0f245322d60e21795af (patch)
tree9349bed10c0192d0aee8a981bb95afecc06365cc /launchd
parent4ca120d2d2a73d8a1595f15e04fc365a4ae20e78 (diff)
launchd: syslog: Use facility org.x rather than user
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'launchd')
-rw-r--r--launchd/privileged_startx/server.c4
-rw-r--r--launchd/user_startx/launchd_startx.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/launchd/privileged_startx/server.c b/launchd/privileged_startx/server.c
index a34a196..99e6b37 100644
--- a/launchd/privileged_startx/server.c
+++ b/launchd/privileged_startx/server.c
@@ -122,7 +122,7 @@ int server_main(const char *dir) {
#endif
launch_data_t config = NULL, checkin = NULL, label = NULL;
- const char *labelstr = "privileged_startx";
+ const char *labelstr = BUNDLE_ID_PREFIX".privileged_startx";
aslclient aslc;
checkin = launch_data_new_string(LAUNCH_KEY_CHECKIN);
@@ -143,7 +143,7 @@ int server_main(const char *dir) {
labelstr = launch_data_get_string(label);
}
- aslc = asl_open(labelstr, "user", ASL_OPT_NO_DELAY);
+ aslc = asl_open(labelstr, BUNDLE_ID_PREFIX, ASL_OPT_NO_DELAY);
(void)console_redirect(aslc, NULL, ASL_LEVEL_INFO, ASL_LEVEL_NOTICE);
#ifdef LAUNCH_JOBKEY_MACHSERVICES
diff --git a/launchd/user_startx/launchd_startx.c b/launchd/user_startx/launchd_startx.c
index a2fc9f0..3d1e03e 100644
--- a/launchd/user_startx/launchd_startx.c
+++ b/launchd/user_startx/launchd_startx.c
@@ -52,7 +52,7 @@ int main(int argc, char **argv, char **envp) {
exit(EXIT_FAILURE);
}
- aslc = asl_open(BUNDLE_ID_PREFIX".startx", "user", ASL_OPT_NO_DELAY);
+ aslc = asl_open(BUNDLE_ID_PREFIX".startx", BUNDLE_ID_PREFIX, ASL_OPT_NO_DELAY);
(void)console_redirect(aslc, NULL, ASL_LEVEL_INFO, ASL_LEVEL_NOTICE);
assert(posix_spawnp(&child, argv[1], NULL, NULL, &argv[1], envp) == 0);