2 writes to _processId
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (2)
115_processId = processId; 1136_processId = processId;
19 references to _processId
System.Diagnostics.Process (19)
System\Diagnostics\Process.cs (7)
235return _processId; 260string? processName = _processName ??= ProcessManager.GetProcessName(_processId, _machineName, _isRemoteMachine, ref _processInfo); 324_modules = ProcessManager.GetModules(_processId); 515newThreadsArray[i] = new ProcessThread(_isRemoteMachine, _processId, (ThreadInfo)processInfo._threadInfoList[i]); 1022private bool IsCurrentProcess => _processId == Environment.ProcessId; 1416string? processName = _processName ??= ProcessManager.GetProcessName(_processId, _machineName, _isRemoteMachine, ref _processInfo); 1786_processInfo = processInfo = ProcessManager.GetProcessInfo(_processId, _machineName, _isRemoteMachine);
System\Diagnostics\Process.Linux.cs (4)
129if (!ProcessManager.TryGetProcPid(_processId, out Interop.procfs.ProcPid procPid)) 157if (Interop.Sys.SchedGetAffinity(_processId, out set) != 0) 168if (Interop.Sys.SchedSetAffinity(_processId, ref value) != 0) 337if (!ProcessManager.TryReadStatFile(_processId, out stat))
System\Diagnostics\Process.Unix.cs (8)
72int killResult = Interop.Sys.Kill(_processId, Interop.Sys.GetPlatformSignalNumber(PosixSignal.SIGKILL)); 108int stopResult = Interop.Sys.Kill(_processId, Interop.Sys.GetPlatformSIGSTOP()); 122int killResult = Interop.Sys.Kill(_processId, Interop.Sys.GetPlatformSignalNumber(PosixSignal.SIGKILL)); 262int errno = Interop.Sys.GetPriority(Interop.Sys.PriorityWhich.PRIO_PROCESS, _processId, out int pri); 294int result = Interop.Sys.SetPriority(Interop.Sys.PriorityWhich.PRIO_PROCESS, _processId, pri); 337throw new InvalidOperationException(SR.Format(SR.ProcessHasExited, _processId.ToString())); 355return new SafeProcessHandle(_processId, GetSafeWaitHandle()); 419_waitStateHolder = new ProcessWaitState.Holder(_processId);