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