syscall optimisation
This commit is contained in:
parent
cd6fd4a1d1
commit
d08ee1a9d2
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ portParams (Just port) = [Param "-p", Param $ show port]
|
|||
sshCleanup :: Annex ()
|
||||
sshCleanup = do
|
||||
dir <- fromRepo gitAnnexSshDir
|
||||
liftIO $ createDirectoryIfMissing True dir
|
||||
sockets <- filter (not . isLock) <$> liftIO (dirContents dir)
|
||||
sockets <- filter (not . isLock) <$>
|
||||
liftIO (catchDefaultIO (dirContents dir) [])
|
||||
forM_ sockets cleanup
|
||||
where
|
||||
cleanup socketfile = do
|
||||
|
|
Loading…
Reference in a new issue