summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_file.erl12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index f809ce1e..aae89d7f 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -158,17 +158,7 @@ sync(Fd) ->
%% Returns: ok
%%----------------------------------------------------------------------
close(Fd) ->
- MRef = erlang:monitor(process, Fd),
- try
- catch unlink(Fd),
- catch exit(Fd, shutdown),
- receive
- {'DOWN', MRef, _, _, _} ->
- ok
- end
- after
- erlang:demonitor(MRef, [flush])
- end.
+ couch_util:shutdown_sync(Fd).
delete(RootDir, Filepath) ->