summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_file.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_file.erl')
-rw-r--r--src/couchdb/couch_file.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index 5ccb521b..8101fdd2 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -45,6 +45,11 @@ open(Filepath, Options) ->
{FdPid, ok} ->
{ok, FdPid};
{FdPid, Error} ->
+ case process_info(self(), trap_exit) of
+ {trap_exit, true} ->
+ receive {'EXIT', FdPid, _} -> ok end;
+ _ -> ok
+ end,
Error
end;
Error ->