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