diff options
Diffstat (limited to 'launchd/user_startx/launchd_startx.c')
-rw-r--r-- | launchd/user_startx/launchd_startx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/launchd/user_startx/launchd_startx.c b/launchd/user_startx/launchd_startx.c index 3d1e03e..e3fae76 100644 --- a/launchd/user_startx/launchd_startx.c +++ b/launchd/user_startx/launchd_startx.c @@ -39,8 +39,7 @@ #include <string.h> #include <stdlib.h> -/* console_redirect.c */ -extern int console_redirect(aslclient aslc, aslmsg amsg, int stdout_level, int stderr_level); +#include "console_redirect.h" int main(int argc, char **argv, char **envp) { aslclient aslc; @@ -53,7 +52,9 @@ int main(int argc, char **argv, char **envp) { } 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); + + xi_asl_capture_fd(aslc, NULL, ASL_LEVEL_INFO, STDOUT_FILENO); + xi_asl_capture_fd(aslc, NULL, ASL_LEVEL_NOTICE, STDERR_FILENO); assert(posix_spawnp(&child, argv[1], NULL, NULL, &argv[1], envp) == 0); |