Skip to content

Commit

Permalink
Filter processes by ID not by comparision - relates to #599
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Feb 13, 2015
1 parent fbd9c5b commit b19b3be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Paket.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b19b3be

Please sign in to comment.