From 922e8e27343704155b81f50ddd3316ec04c9d299 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 9 Aug 2018 13:50:49 +0200 Subject: executor: mount binfmt_mist We forgot to mount binfmt_misc. Mount it. Add a test. Increase per-call timeout, otherwise last execve timesout. Fix csource waiting for call completion at the end of program. --- executor/executor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index c918f8b43..1e6e9d255 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -646,7 +646,7 @@ retry: } else if (flag_threaded) { // Wait for call completion. // Note: sys knows about this 25ms timeout when it generates timespec/timeval values. - const uint64 timeout_ms = flag_debug ? 1000 : 25; + const uint64 timeout_ms = flag_debug ? 1000 : 45; if (event_timedwait(&th->done, timeout_ms)) handle_completion(th); // Check if any of previous calls have completed. @@ -668,6 +668,7 @@ retry: if (!colliding && !collide && running > 0) { // Give unfinished syscalls some additional time. + last_scheduled = 0; uint64 wait = 100; uint64 wait_start = current_time_ms(); uint64 wait_end = wait_start + wait; -- cgit mrf-deployment