summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-08-10 17:57:01 -0700
committerJosh Gao <jmgao@google.com>2016-08-12 11:00:18 -0700
commitf5a960a187ba8959596f6a324c2b5a05c1be9b35 (patch)
treeb59c9dfb95af0ca43730b14f29b872f6c3c8340e /debuggerd/debuggerd.cpp
parent07f14c9cdde718bface371d075ccc7f8bf16f098 (diff)
debuggerd: remove useless timeout from wait_for_signal.
The watchdog already handles things for us, so the timeout logic in wait_for_signal is pointless. Change-Id: Id81ad5f294068216b73e04c4e2ceca072ae1bbc0
Diffstat (limited to 'debuggerd/debuggerd.cpp')
-rw-r--r--debuggerd/debuggerd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/debuggerd/debuggerd.cpp b/debuggerd/debuggerd.cpp
index a82fd079e..0c18b9c58 100644
--- a/debuggerd/debuggerd.cpp
+++ b/debuggerd/debuggerd.cpp
@@ -459,9 +459,10 @@ static bool perform_dump(const debugger_request_t& request, int fd, int tombston
return false;
}
- int total_sleep_time_usec = 0;
while (true) {
- int signal = wait_for_signal(request.tid, &total_sleep_time_usec);
+ // wait_for_signal waits for forever, but the watchdog process will kill us
+ // if it takes too long.
+ int signal = wait_for_signal(request.tid);
switch (signal) {
case -1:
ALOGE("debuggerd: timed out waiting for signal");