diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-09-24 14:35:11 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-09-24 14:35:11 +0000 |
commit | eb839ed521e0e81444569614de5552987bf2127a (patch) | |
tree | e629b2fb3df4268051392d0628ff26ec5d869eff | |
parent | f218a4123854d3772148de344b798c6416a40f3b (diff) |
unlock, instead of re-lock. fixes PR#1408
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 609e7fe7d08..e7af7ebfe78 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getgrent.c,v 1.12 2000/01/08 08:07:24 d Exp $"; +static char rcsid[] = "$OpenBSD: getgrent.c,v 1.13 2000/09/24 14:35:10 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -184,7 +184,7 @@ setgroupent(stayopen) _gr_stayopen = stayopen; retval = 1; } - _THREAD_PRIVATE_MUTEX_LOCK(gr); + _THREAD_PRIVATE_MUTEX_UNLOCK(gr); return (retval); } |