From c5e837509e1d9777846192a7ec813b468b61517c Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Tue, 5 Aug 2008 17:06:43 +0000 Subject: Fixed bug where we attempted to match a linked port to the current fd, but fail because the fd structure is more than the linked port. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682792 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_file.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/couchdb/couch_file.erl') diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl index c04ac33a..37e1d7ac 100644 --- a/src/couchdb/couch_file.erl +++ b/src/couchdb/couch_file.erl @@ -396,15 +396,15 @@ handle_info(Info, Fd) -> should_close(Fd) -> case process_info(self(), links) of - {links, [Fd]} -> - % no linkers left (except our fd). What about monitors? + {links, [_]} -> + % no linkers left (except our fd port). What about monitors? case process_info(self(), monitors) of {monitors, []} -> true; _ -> false end; - {links, Links} when length(Links) > 1 -> + {links, [_|_]} -> false end. -- cgit v1.2.3