OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b639f4
)
Flushes stdout when execvp fails.
author
Felipe Leme
<felipeal@google.com>
Wed, 23 Mar 2016 18:47:00 +0000
(11:47 -0700)
committer
The Android Automerger
<android-build@google.com>
Wed, 23 Mar 2016 20:46:29 +0000
(13:46 -0700)
BUG:
27804637
Change-Id: Idf414a1d08bf51854475c74767588a4814c8d806
cmds/dumpstate/utils.cpp
patch
|
blob
|
history
diff --git
a/cmds/dumpstate/utils.cpp
b/cmds/dumpstate/utils.cpp
index
d07ca8c
..
3fa2141
100644
(file)
--- a/
cmds/dumpstate/utils.cpp
+++ b/
cmds/dumpstate/utils.cpp
@@
-737,7
+737,8
@@
int run_command_always(const char *title, bool drop_root, int timeout_seconds, c
execvp(command, (char**) args);
// execvp's result will be handled after waitpid_with_timeout() below...
- MYLOGD("execvp on command %s (plus args) returned control; calling _exit(-1)", command)
+ MYLOGD("execvp on command %s returned control (error: %s)", command, strerror(errno));
+ fflush(stdout);
_exit(-1); // ...but it doesn't hurt to force exit, just in case
}