Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Fix the other lwp_park() to pass 0 for the...
details: https://anonhg.NetBSD.org/src/rev/9cc16fedf76c
branches: trunk
changeset: 783366:9cc16fedf76c
user: dsl <dsl%NetBSD.org@localhost>
date: Sun Dec 16 23:00:46 2012 +0000
description:
Fix the other lwp_park() to pass 0 for the 'unpark' lwp.
diffstat:
libexec/ld.elf_so/rtld.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d28e6bf22472 -r 9cc16fedf76c libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Sun Dec 16 22:21:03 2012 +0000
+++ b/libexec/ld.elf_so/rtld.c Sun Dec 16 23:00:46 2012 +0000
@@ -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_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));
Home |
Main Index |
Thread Index |
Old Index