summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_file.erl6
1 files changed, 3 insertions, 3 deletions
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.