From: tobias Date: Fri, 17 Jan 2014 21:42:47 +0000 (+0000) Subject: Close file descriptor before next try getting a good one. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=201a6017b8a0e0d8837520b6da7a1ac0825555fc;p=openbsd Close file descriptor before next try getting a good one. ok millert@ --- diff --git a/libexec/mail.local/locking.c b/libexec/mail.local/locking.c index 735c846e4eb..a9a2a8d1881 100644 --- a/libexec/mail.local/locking.c +++ b/libexec/mail.local/locking.c @@ -1,4 +1,4 @@ -/* $OpenBSD: locking.c,v 1.10 2011/01/10 21:00:50 millert Exp $ */ +/* $OpenBSD: locking.c,v 1.11 2014/01/17 21:42:47 tobias Exp $ */ /* * Copyright (c) 1996-1998 Theo de Raadt @@ -112,6 +112,7 @@ again: seteuid(pw->pw_uid); } } + close(lfd); } sleep(1U << tries); tries++;