summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/utils.cpp
diff options
context:
space:
mode:
author Felipe Leme <felipeal@google.com> 2016-03-23 17:42:56 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-03-23 17:42:56 +0000
commit9b02ecfe308302eae98d50fa165b1faae695f3df (patch)
treea774c9e6ec195b42e0320bc1fb1687c478b997d7 /cmds/dumpstate/utils.cpp
parent41371bfa0dad4a4332a8cc30b066d95546e4c4fc (diff)
parentb0133cdeaa98afa55249546f68b6167f1dde65b8 (diff)
Merge "Handled failure of execvp and increases am timeout." into nyc-dev
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
-rw-r--r--cmds/dumpstate/utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 89c9653e37..d07ca8c37d 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -737,6 +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)
+ _exit(-1); // ...but it doesn't hurt to force exit, just in case
}
/* handle parent case */
@@ -848,7 +850,7 @@ void send_broadcast(const std::string& action, const std::vector<std::string>& a
std::string args_string;
format_args(am_index + 1, am_args, &args_string);
MYLOGD("send_broadcast command: %s\n", args_string.c_str());
- run_command_always(NULL, 5, true, am_args);
+ run_command_always(NULL, 20, true, am_args);
}
size_t num_props = 0;