Skip to content

Commit

Permalink
[mtouch] Add (another) workaround for file descriptor leak in System.…
Browse files Browse the repository at this point in the history
…Diagnostics.Process. (xamarin#934)
  • Loading branch information
rolfbjarne authored Oct 3, 2016
1 parent a3939b1 commit 1fdd17e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/common/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ public static int RunCommand (string path, string args, string[] env = null, Str
stderr_completed.WaitOne (TimeSpan.FromSeconds (1));
stdout_completed.WaitOne (TimeSpan.FromSeconds (1));

GC.Collect (); // Workaround for: https://bugzilla.xamarin.com/show_bug.cgi?id=43462#c14

if (p.ExitCode != 0) {
// note: this repeat the failing command line. However we can't avoid this since we're often
// running commands in parallel (so the last one printed might not be the one failing)
Expand Down

0 comments on commit 1fdd17e

Please sign in to comment.