catch exception when making fifo fails

This commit is contained in:
Joey Hess 2013-04-04 14:25:20 -04:00
parent bd5d664a0c
commit c20143ee32

View file

@ -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