From b19b3be5cb77c40a431fabafe61df7ae53ac6915 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Fri, 13 Feb 2015 09:13:54 +0100 Subject: [PATCH] Filter processes by ID not by comparision - relates to #599 --- RELEASE_NOTES.md | 5 ++++- src/Paket.Core/Utils.fs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1be4cb2066..1409439df8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,8 @@ +#### 0.27.13 - 13.02.2015 +* BUGFIX: Try to ease the pain with mono bug in Process class - https://github.com/fsprojects/Paket/issues/599 + #### 0.27.12 - 13.02.2015 -* BUGFIX:`paket restore` does not fail on missing `paket.version` files - https://github.com/fsprojects/Paket/issues/600 +* BUGFIX: `paket restore` does not fail on missing `paket.version` files - https://github.com/fsprojects/Paket/issues/600 #### 0.27.11 - 12.02.2015 * BUGFIX: `paket restore` does not re-download http references - https://github.com/fsprojects/Paket/issues/592 diff --git a/src/Paket.Core/Utils.fs b/src/Paket.Core/Utils.fs index 87f5347265..a6f2a91975 100644 --- a/src/Paket.Core/Utils.fs +++ b/src/Paket.Core/Utils.fs @@ -215,7 +215,7 @@ let RunInLockedAccessMode(rootFolder,action) = let currentProcess = Process.GetCurrentProcess() let hasRunningPaketProcess = Process.GetProcessesByName(p.ProcessName) - |> Array.filter (fun p -> p <> currentProcess) + |> Array.filter (fun p -> p.Id <> currentProcess.Id) |> Array.exists (fun p -> content = p.Id.ToString() && (not p.HasExited)) if hasRunningPaketProcess then