On Fri, 12 Jun 2015 20:43:33 +0200, Alexander Bluhm wrote: > I wanted both places were we close the lockpipe in a consistent > order. Now I think we should compare the fd with 2 in both places > to have the same level of paranoia as with nullfd a few lines below.
It is safer to close the lock fd first for the following reasons: 1) No need to check whether it might be in the range 0-2. 2) You free up a free fd slot in case resource limits are low. - todd
