mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Leave STDIN open (#738)
This commit is contained in:
@@ -185,7 +185,6 @@ namespace WinSW.Util
|
||||
/// <param name="workingDirectory">Working directory</param>
|
||||
/// <param name="priority">Priority</param>
|
||||
/// <param name="callback">Completion callback. If null, the completion won't be monitored</param>
|
||||
/// <param name="redirectStdin">Redirect standard input</param>
|
||||
/// <param name="logHandler">Log handler. If enabled, logs will be redirected to the process and then reported</param>
|
||||
public static void StartProcessAndCallbackForExit(
|
||||
Process processToStart,
|
||||
@@ -195,7 +194,6 @@ namespace WinSW.Util
|
||||
string? workingDirectory = null,
|
||||
ProcessPriorityClass? priority = null,
|
||||
ProcessCompletionCallback? callback = null,
|
||||
bool redirectStdin = true,
|
||||
LogHandler? logHandler = null,
|
||||
bool hideWindow = false)
|
||||
{
|
||||
@@ -205,7 +203,6 @@ namespace WinSW.Util
|
||||
ps.WorkingDirectory = workingDirectory ?? ps.WorkingDirectory;
|
||||
ps.CreateNoWindow = hideWindow;
|
||||
ps.UseShellExecute = false;
|
||||
ps.RedirectStandardInput = redirectStdin;
|
||||
ps.RedirectStandardOutput = logHandler?.OutFileDisabled == false;
|
||||
ps.RedirectStandardError = logHandler?.ErrFileDisabled == false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user