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