From 150e75abc59c7519c7d41634f642d5a17eed16ed Mon Sep 17 00:00:00 2001 From: rovo89 Date: Thu, 5 Oct 2017 18:47:30 +0200 Subject: [PATCH] Increase pipe size for logcat When the system is very busy, this can help a bit to get more logs. Otherwise, when the pipe runs full, logcat will not be able to send more output and will quit. --- xposed_logcat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xposed_logcat.cpp b/xposed_logcat.cpp index b06843f7d..9e9ed8890 100644 --- a/xposed_logcat.cpp +++ b/xposed_logcat.cpp @@ -154,6 +154,7 @@ void start() { ALOGE("Could not allocate pipe for logcat output: %s", strerror(errno)); exit(EXIT_FAILURE); } + fcntl(pipeFds[0], F_SETPIPE_SZ, 1048576); if ((pid = fork()) < 0) { ALOGE("Fork for logcat execution failed: %s", strerror(errno));