42 references to ProcessUtils
System.Diagnostics.Process (42)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (9)
95if (!ProcessUtils.PlatformSupportsProcessStartAndKill) 100SerializationGuard.ThrowIfDeserializationInProgress("AllowProcessCreation", ref ProcessUtils.s_cachedSerializationSwitch); 113childInputHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardInputHandle() : null); 114childOutputHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardOutputHandle() : null); 115childErrorHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardErrorHandle() : null); 198return TryWaitForExitCore(ProcessUtils.ToTimeoutMilliseconds(timeout), out exitStatus); 222if (!ProcessUtils.PlatformSupportsProcessStartAndKill) 227return WaitForExitOrKillOnTimeoutCore(ProcessUtils.ToTimeoutMilliseconds(timeout)); 318if (!ProcessUtils.PlatformSupportsProcessStartAndKill)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (20)
80if (!ProcessUtils.PlatformSupportsProcessStartAndKill) 182ProcessUtils.EnsureInitialized(); 201(userId, groupId, groups) = ProcessUtils.GetUserAndGroupIds(startInfo); 206filename = ProcessUtils.ResolvePath(startInfo.FileName); 207argv = ProcessUtils.ParseArgv(startInfo); 233(userId, groupId, groups) = ProcessUtils.GetUserAndGroupIds(startInfo); 250string? filename = ProcessUtils.ResolveExecutableForShellExecute(startInfo.FileName, cwd); 253string[] argv = ProcessUtils.ParseArgv(startInfo); 274string[] openFileArgv = ProcessUtils.ParseArgv(startInfo, filename, ignoreArguments: true); 291=> ProcessUtils.IsTerminal(stdinHandle) || ProcessUtils.IsTerminal(stdoutHandle) || ProcessUtils.IsTerminal(stderrHandle); 305throw ProcessUtils.CreateExceptionForErrorStartingProcess(error.GetErrorMessage(), error.RawErrno, startInfo.FileName, cwd); 312ProcessUtils.s_processStartLock.EnterReadLock(); 317ProcessUtils.ConfigureTerminalForChildProcesses(1); 344ProcessUtils.s_processStartLock.ExitReadLock(); 352ProcessUtils.s_processStartLock.EnterWriteLock(); 353ProcessUtils.ConfigureTerminalForChildProcesses(-1); 354ProcessUtils.s_processStartLock.ExitWriteLock(); 363throw ProcessUtils.CreateExceptionForErrorStartingProcess(new Interop.ErrorInfo(errno).GetErrorMessage(), errno, resolvedFilename, cwd);
System\Diagnostics\Process.cs (8)
752public bool WaitForInputIdle(TimeSpan timeout) => WaitForInputIdle(ProcessUtils.ToTimeoutMilliseconds(timeout)); 1167if (!ProcessUtils.PlatformSupportsProcessStartAndKill) 1175SerializationGuard.ThrowIfDeserializationInProgress("AllowProcessCreation", ref ProcessUtils.s_cachedSerializationSwitch); 1195bool requiresLock = anyRedirection && !ProcessUtils.SupportsAtomicNonInheritablePipeCreation; 1199ProcessUtils.s_processStartLock.EnterWriteLock(); 1235ProcessUtils.s_processStartLock.ExitWriteLock(); 1251else if (ProcessUtils.PlatformSupportsConsole) 1472public bool WaitForExit(TimeSpan timeout) => WaitForExit(ProcessUtils.ToTimeoutMilliseconds(timeout));
System\Diagnostics\Process.Linux.cs (1)
77string? pathToProgram = ProcessUtils.FindProgramInPath(program);
System\Diagnostics\Process.Multiplexing.cs (1)
389? ProcessUtils.ToTimeoutMilliseconds(timeout.Value)
System\Diagnostics\Process.Unix.cs (1)
57if (!ProcessUtils.PlatformSupportsProcessStartAndKill)
System\Diagnostics\ProcessStartInfo.cs (1)
544if (inheritedHandles is null || inheritedHandles.Length == 0 || !ProcessUtils.PlatformSupportsConsole)
System\Diagnostics\ProcessWaitState.Unix.cs (1)
569ProcessUtils.ConfigureTerminalForChildProcesses(-1, configureConsole);