From 201a6017b8a0e0d8837520b6da7a1ac0825555fc Mon Sep 17 00:00:00 2001 From: tobias Date: Fri, 17 Jan 2014 21:42:47 +0000 Subject: [PATCH] Close file descriptor before next try getting a good one. ok millert@ --- libexec/mail.local/locking.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; -- 2.20.1