diff options
| author | 2016-03-23 11:47:00 -0700 | |
|---|---|---|
| committer | 2016-03-23 11:48:18 -0700 | |
| commit | ec72578b8461a5601962ea8102fd74a1f86d91fb (patch) | |
| tree | 7c9253570597d50375d3ef70562327cdb5536c75 /cmds/dumpstate/utils.cpp | |
| parent | b0133cdeaa98afa55249546f68b6167f1dde65b8 (diff) | |
Flushes stdout when execvp fails.
BUG: 27804637
Change-Id: Idf414a1d08bf51854475c74767588a4814c8d806
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
| -rw-r--r-- | cmds/dumpstate/utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index d07ca8c37d..3fa2141cf1 100644 --- 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 } |