Skip to content

Commit

Permalink
Fix for *nix.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Feb 19, 2019
1 parent a12d03e commit bf2d2c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ internal static Task<ICommandResult> RunCommand(
break;
foreach(ProcessThread thread in process.Threads)
if (thread.ThreadState == System.Diagnostics.ThreadState.Wait && thread.WaitReason == ThreadWaitReason.UserRequest)
{
if (thread.ThreadState == System.Diagnostics.ThreadState.Wait && (thread.WaitReason == ThreadWaitReason.UserRequest || thread.WaitReason == ThreadWaitReason.Unknown /* hack fix for linux: should be more precise */))
{
process.StandardInput.WriteLine(await inputRequestHandler(standardOutput.ToString(), standardError.ToString()));
break;
}
}
}
});
}
Expand Down

0 comments on commit bf2d2c1

Please sign in to comment.