Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions agent/lib/src/commands/run.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ class RunCommand extends Command {
} finally {
await forceQuitRunningProcesses();
}

if (exitCode != 0) {
// Force-quitting child processes sometimes causes the Dart VM to fail to
// exit. So we give a 2-second grace period for any pending cleanups, then
// self-destruct.
await new Future<Null>.delayed(const Duration(seconds: 2));
exit(exitCode);
}
}
}

Expand Down