aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-04 14:25:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-04 14:25:20 -0400
commit307212395c912ab268109521ceae1bf192f728d8 (patch)
tree37df415ae341050d196c26a6c98073a3cb9798ed
parentc5a116b86500c89070cb6591d96437454d2282c1 (diff)
catch exception when making fifo fails
-rw-r--r--Init.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Init.hs b/Init.hs
index 678bd7301..62b12283f 100644
--- a/Init.hs
+++ b/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