catch exception when making fifo fails
This commit is contained in:
parent
bd5d664a0c
commit
c20143ee32
1 changed files with 3 additions and 2 deletions
5
Init.hs
5
Init.hs
|
@ -154,8 +154,9 @@ probeFifoSupport = do
|
|||
liftIO $ do
|
||||
createDirectoryIfMissing True tmp
|
||||
nukeFile f
|
||||
createNamedPipe f ownerReadMode
|
||||
ms <- tryIO $ getFileStatus f
|
||||
ms <- tryIO $ do
|
||||
createNamedPipe f ownerReadMode
|
||||
getFileStatus f
|
||||
nukeFile f
|
||||
return $ either (const False) isNamedPipe ms
|
||||
|
||||
|
|
Loading…
Reference in a new issue