Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 2478d54

Browse files
committed
Fix hTryLock in newer Haskell (OFD locks on Linux); fix imports
1 parent 9a9d28d commit 2478d54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cardano-launcher/src/Cardano/Shell/Application.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ checkIfApplicationIsRunning lockFilePath = do
6363
when (not fileExist) $
6464
writeFile lockFilePath ""
6565

66-
lockfileHandle <- openFile lockFilePath ReadMode
66+
lockfileHandle <- openFile lockFilePath ReadWriteMode
6767
isAlreadyRunning <- hTryLock lockfileHandle ExclusiveLock
6868

6969
-- We need to inform the user if the application version is already running.

cardano-launcher/src/Cardano/Shell/Launcher.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Cardano.Shell.Launcher
2929
import Cardano.Prelude hiding (onException)
3030

3131
import Prelude (Show (..))
32-
import Data.Aeson (FromJSON, ToJSON(toJSON), genericParseJSON, genericToJSON, defaultOptions)
32+
import Data.Aeson (genericParseJSON, genericToJSON, defaultOptions)
3333
import Data.Yaml as Y
3434
import qualified System.Process as Process
3535
import Turtle (system)

0 commit comments

Comments
 (0)