12 references to SafeHandle
Microsoft.DotNet.Cli.Utils (1)
ProcessReaper.cs (1)
171if (!_process.WaitForExit(0) && _process.SafeHandle.Signal(PosixSignal.SIGTERM))
Microsoft.DotNet.HotReload.Watch (2)
Process\ProcessRunner.cs (1)
379process.SafeHandle.Signal(signal);
UI\PhysicalConsole.cs (1)
65process.SafeHandle.Signal(PosixSignal.SIGTERM);
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessHelper.cs (1)
29return Process.GetProcessById(processId).SafeHandle.DangerousGetHandle();
System.Diagnostics.Process (8)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (4)
70/// the process is currently running; opening the process handle is deferred until <see cref="Process.SafeHandle"/> is accessed. 73/// On Windows, this API requests query/synchronize/terminate rights, while <see cref="Process.SafeHandle"/> requests 112/// whether the process is currently running; opening the process handle is deferred until <see cref="Process.SafeHandle"/> is accessed. 115/// On Windows, this API requests query/synchronize/terminate rights, while <see cref="Process.SafeHandle"/> requests
System\Diagnostics\Process.cs (1)
131public IntPtr Handle => SafeHandle.DangerousGetHandle();
System\Diagnostics\Process.Scenarios.cs (3)
262exitStatus = process.SafeHandle.WaitForExitOrKillOnTimeout(remaining); 266exitStatus = process.SafeHandle.WaitForExit(); 334ProcessExitStatus exitStatus = await process.SafeHandle.WaitForExitOrKillOnCancellationAsync(cancellationToken).ConfigureAwait(false);