Merge "liblogcat: redirect logcat output correctly for -Q"
am: 151fec4032
Change-Id: I462f7bfbee1ec06575768f4271394b41707aefce
This commit is contained in:
commit
f2b62408b2
1 changed files with 5 additions and 2 deletions
|
|
@ -1231,8 +1231,11 @@ static int __logcat(android_logcat_context_internal* context) {
|
||||||
android::close_error(context);
|
android::close_error(context);
|
||||||
context->stderr_stdout = true;
|
context->stderr_stdout = true;
|
||||||
context->output = fp;
|
context->output = fp;
|
||||||
context->error = context->output;
|
context->output_fd = fileno(fp);
|
||||||
if (context->stderr_null) context->error = NULL;
|
if (context->stderr_null) break;
|
||||||
|
context->stderr_stdout = true;
|
||||||
|
context->error = fp;
|
||||||
|
context->error_fd = fileno(fp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue