aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-03-01 14:56:26 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-03-10 17:47:13 +0100
commitf419fc90dd6b663ac04d1a46c8bf99e1437609dc (patch)
tree9596ad3c0695866b697da64dc7958863fbe9f060
parent9851bc6a97a1bed0a5ff45aae727bfe6760f5b93 (diff)
executor: make loop killing non-fatal
-rw-r--r--executor/executor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 5136008c5..4405548df 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -202,7 +202,10 @@ int main(int argc, char** argv)
fail("loop failed");
if (status == kErrorStatus)
error("loop errored");
- fail("loop exited with status %d", status);
+ // Loop can be killed by a test process with e.g.:
+ // ptrace(PTRACE_SEIZE, 1, 0, 0x100040)
+ // This is unfortunate, but I don't have a better solution than ignoring it for now.
+ exitf("loop exited with status %d", status);
return 0;
}