12 references to SafeHandle
Microsoft.DotNet.Cli.Utils (1)
ProcessReaper.cs (1)
171
if (!_process.WaitForExit(0) && _process.
SafeHandle
.Signal(PosixSignal.SIGTERM))
Microsoft.DotNet.HotReload.Watch (2)
Process\ProcessRunner.cs (1)
379
process.
SafeHandle
.Signal(signal);
UI\PhysicalConsole.cs (1)
65
process.
SafeHandle
.Signal(PosixSignal.SIGTERM);
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessHelper.cs (1)
29
return 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)
131
public IntPtr Handle =>
SafeHandle
.DangerousGetHandle();
System\Diagnostics\Process.Scenarios.cs (3)
262
exitStatus = process.
SafeHandle
.WaitForExitOrKillOnTimeout(remaining);
266
exitStatus = process.
SafeHandle
.WaitForExit();
334
ProcessExitStatus exitStatus = await process.
SafeHandle
.WaitForExitOrKillOnCancellationAsync(cancellationToken).ConfigureAwait(false);