Module Name:    src
Committed By:   dsl
Date:           Sun Dec 16 23:00:47 UTC 2012

Modified Files:
        src/libexec/ld.elf_so: rtld.c

Log Message:
Fix the other lwp_park() to pass 0 for the 'unpark' lwp.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/libexec/ld.elf_so/rtld.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/rtld.c
diff -u src/libexec/ld.elf_so/rtld.c:1.160 src/libexec/ld.elf_so/rtld.c:1.161
--- src/libexec/ld.elf_so/rtld.c:1.160	Sun Dec 16 11:15:21 2012
+++ src/libexec/ld.elf_so/rtld.c	Sun Dec 16 23:00:46 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: rtld.c,v 1.160 2012/12/16 11:15:21 dsl Exp $	 */
+/*	$NetBSD: rtld.c,v 1.161 2012/12/16 23:00:46 dsl Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.160 2012/12/16 11:15:21 dsl Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.161 2012/12/16 23:00:46 dsl Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -1602,7 +1602,7 @@ _rtld_exclusive_enter(sigset_t *mask)
 			_rtld_die();
 		}
 		if (cur)
-			_lwp_park(NULL, -1, __UNVOLATILE(&_rtld_mutex), NULL);
+			_lwp_park(NULL, 0, __UNVOLATILE(&_rtld_mutex), NULL);
 		atomic_cas_uint(&_rtld_waiter_exclusive, self, 0);
 		if (waiter)
 			_lwp_unpark(waiter, __UNVOLATILE(&_rtld_mutex));

Reply via email to