26 references to ProcessUtils
System.Diagnostics.Process (26)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
101SerializationGuard.ThrowIfDeserializationInProgress("AllowProcessCreation", ref ProcessUtils.s_cachedSerializationSwitch);
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (18)
64if (ProcessUtils.PlatformDoesNotSupportProcessStartAndKill) 110if (ProcessUtils.PlatformDoesNotSupportProcessStartAndKill) 115ProcessUtils.EnsureInitialized(); 134(userId, groupId, groups) = ProcessUtils.GetUserAndGroupIds(startInfo); 146filename = ProcessUtils.ResolvePath(startInfo.FileName); 147argv = ProcessUtils.ParseArgv(startInfo); 171(userId, groupId, groups) = ProcessUtils.GetUserAndGroupIds(startInfo); 190string? filename = ProcessUtils.ResolveExecutableForShellExecute(startInfo.FileName, cwd); 193string[] argv = ProcessUtils.ParseArgv(startInfo); 213string[] openFileArgv = ProcessUtils.ParseArgv(startInfo, filename, ignoreArguments: true); 236throw ProcessUtils.CreateExceptionForErrorStartingProcess(error.GetErrorMessage(), error.RawErrno, startInfo.FileName, cwd); 243ProcessUtils.s_processStartLock.EnterReadLock(); 248ProcessUtils.ConfigureTerminalForChildProcesses(1); 274ProcessUtils.s_processStartLock.ExitReadLock(); 282ProcessUtils.s_processStartLock.EnterWriteLock(); 283ProcessUtils.ConfigureTerminalForChildProcesses(-1); 284ProcessUtils.s_processStartLock.ExitWriteLock(); 293throw ProcessUtils.CreateExceptionForErrorStartingProcess(new Interop.ErrorInfo(errno).GetErrorMessage(), errno, resolvedFilename, cwd);
System\Diagnostics\Process.cs (4)
1253SerializationGuard.ThrowIfDeserializationInProgress("AllowProcessCreation", ref ProcessUtils.s_cachedSerializationSwitch); 1273bool requiresLock = anyRedirection && !ProcessUtils.SupportsAtomicNonInheritablePipeCreation; 1277ProcessUtils.s_processStartLock.EnterWriteLock(); 1325ProcessUtils.s_processStartLock.ExitWriteLock();
System\Diagnostics\Process.Linux.cs (1)
111string? pathToProgram = ProcessUtils.FindProgramInPath(program);
System\Diagnostics\Process.Unix.cs (1)
57if (ProcessUtils.PlatformDoesNotSupportProcessStartAndKill)
System\Diagnostics\ProcessWaitState.Unix.cs (1)
553ProcessUtils.ConfigureTerminalForChildProcesses(-1, configureConsole);