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
|
liftIO $ do
|
||||||
createDirectoryIfMissing True tmp
|
createDirectoryIfMissing True tmp
|
||||||
nukeFile f
|
nukeFile f
|
||||||
createNamedPipe f ownerReadMode
|
ms <- tryIO $ do
|
||||||
ms <- tryIO $ getFileStatus f
|
createNamedPipe f ownerReadMode
|
||||||
|
getFileStatus f
|
||||||
nukeFile f
|
nukeFile f
|
||||||
return $ either (const False) isNamedPipe ms
|
return $ either (const False) isNamedPipe ms
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue