Skip to content

Commit 7af8f19

Browse files
committed
Changed default socket name
1 parent 6e240f6 commit 7af8f19

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Main.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{-# LANGUAGE CPP #-}
2+
13
module Main where
24

35
import System.Environment (getProgName, getExecutablePath)
@@ -10,7 +12,11 @@ import Daemonize (daemonize)
1012
import Types (Command(..))
1113

1214
defaultSocketFilename :: FilePath
15+
#ifdef mingw32_HOST_OS
16+
defaultSocketFilename = show 43210
17+
#else
1318
defaultSocketFilename = ".hdevtools.sock"
19+
#endif
1420

1521
getSocketFilename :: Maybe FilePath -> FilePath
1622
getSocketFilename Nothing = defaultSocketFilename

0 commit comments

Comments
 (0)