diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-04 14:25:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-04 14:25:20 -0400 |
commit | 307212395c912ab268109521ceae1bf192f728d8 (patch) | |
tree | 37df415ae341050d196c26a6c98073a3cb9798ed /Init.hs | |
parent | c5a116b86500c89070cb6591d96437454d2282c1 (diff) |
catch exception when making fifo fails
Diffstat (limited to 'Init.hs')
-rw-r--r-- | Init.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |