File: Interactive\Core\ProcessExtensions.cs | Web Access |
Project: src\src\Interactive\Host\Microsoft.CodeAnalysis.InteractiveHost.csproj (Microsoft.CodeAnalysis.InteractiveHost) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; namespace Microsoft.CodeAnalysis.Interactive { internal static class ProcessExtensions { internal static bool IsAlive(this Process process) { try { return !process.HasExited; } catch { return false; } } } } |