Skip to content

Commit

Permalink
Increase pipe size for logcat
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rovo89 committed Oct 5, 2017
1 parent cfe4b48 commit 150e75a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xposed_logcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 150e75a

Please sign in to comment.