summaryrefslogtreecommitdiff
path: root/Assistant/Threads
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/Threads')
-rw-r--r--Assistant/Threads/Committer.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Assistant/Threads/Committer.hs b/Assistant/Threads/Committer.hs
index d90b0e1cb..ce39735f9 100644
--- a/Assistant/Threads/Committer.hs
+++ b/Assistant/Threads/Committer.hs
@@ -281,7 +281,10 @@ safeToAdd delayadd pending inprocess = do
void $ liftIO $ tryIO $ removeFile $ contentLocation ks
canceladd _ = noop
- openwrite (_file, mode, _pid) =
- mode == Lsof.OpenWriteOnly || mode == Lsof.OpenReadWrite
+ openwrite (_file, mode, _pid)
+ | mode == Lsof.OpenWriteOnly = True
+ | mode == Lsof.OpenReadWrite = True
+ | mode == Lsof.OpenUnknown = True
+ | otherwise = False
allRight = return . map Right