2 writes to _processId
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
115
_processId
= processId;
1222
_processId
= processId;
19 references to _processId
System.Diagnostics.Process (19)
System\Diagnostics\Process.cs (6)
241
return
_processId
;
315
_modules = ProcessManager.GetModules(
_processId
);
599
newThreadsArray[i] = new ProcessThread(_isRemoteMachine,
_processId
, (ThreadInfo)_processInfo._threadInfoList[i]);
984
_processInfo = ProcessManager.GetProcessInfo(
_processId
, _machineName);
1109
private bool IsCurrentProcess =>
_processId
== Environment.ProcessId;
1395
_processInfo ??= ProcessManager.GetProcessInfo(
_processId
, _machineName);
System\Diagnostics\Process.Linux.cs (4)
163
if (!ProcessManager.TryGetProcPid(
_processId
, out Interop.procfs.ProcPid procPid))
191
if (Interop.Sys.SchedGetAffinity(
_processId
, out set) != 0)
202
if (Interop.Sys.SchedSetAffinity(
_processId
, ref value) != 0)
370
if (!ProcessManager.TryReadStatFile(
_processId
, out stat))
System\Diagnostics\Process.Unix.cs (9)
76
int killResult = Interop.Sys.Kill(
_processId
, Interop.Sys.Signals.SIGKILL);
112
int stopResult = Interop.Sys.Kill(
_processId
, Interop.Sys.Signals.SIGSTOP);
126
int killResult = Interop.Sys.Kill(
_processId
, Interop.Sys.Signals.SIGKILL);
266
int errno = Interop.Sys.GetPriority(Interop.Sys.PriorityWhich.PRIO_PROCESS,
_processId
, out int pri);
298
int result = Interop.Sys.SetPriority(Interop.Sys.PriorityWhich.PRIO_PROCESS,
_processId
, pri);
341
throw new InvalidOperationException(SR.Format(SR.ProcessHasExited,
_processId
.ToString()));
359
return new SafeProcessHandle(
_processId
, GetSafeWaitHandle());
534
SetProcessHandle(new SafeProcessHandle(
_processId
, GetSafeWaitHandle()));
959
_waitStateHolder = new ProcessWaitState.Holder(
_processId
);