Skip to content
Browse files

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
  • Loading branch information...
1 parent ba83243 commit c5e837509e1d9777846192a7ec813b468b61517c Damien F. Katz committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/couchdb/couch_file.erl
View
6 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.

0 comments on commit c5e8375

Please sign in to comment.
Something went wrong with that request. Please try again.