From a56f5e49f01de3aeb631a263a8801d6c2c677d89 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Wed, 22 Sep 2010 19:45:24 +0000 Subject: Removing duplicated code. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000156 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_file.erl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/couchdb/couch_file.erl') 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) -> -- cgit v1.2.3