Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions source/Server/Common/Current.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

namespace SharpLab.Server.Common {
public static class Current {
public static readonly int ProcessId = ((Func<int>)(() => {
using (var current = Process.GetCurrentProcess()) {
return current.Id;
}
}))();
public static readonly int ProcessId = Environment.ProcessId;

public static readonly string AssemblyPath = typeof(Current).Assembly.GetAssemblyFile().FullName;
}
Expand Down
Loading