[Glibc-bsd-commits] r4596 - trunk/glibc-ports/kfreebsd/fbtl
Petr Salinger
ps-guest at alioth.debian.org
Mon Jul 8 12:43:19 UTC 2013
Author: ps-guest
Date: 2013-06-23 17:55:58 +0000 (Sun, 23 Jun 2013)
New Revision: 4596
Modified:
trunk/glibc-ports/kfreebsd/fbtl/fork.c
Log:
hacks into fork
Modified: trunk/glibc-ports/kfreebsd/fbtl/fork.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/fork.c 2013-06-23 17:55:32 UTC (rev 4595)
+++ trunk/glibc-ports/kfreebsd/fbtl/fork.c 2013-06-23 17:55:58 UTC (rev 4596)
@@ -138,7 +138,15 @@
{
struct pthread *self = THREAD_SELF;
+#if 0
assert (THREAD_GETMEM (self, tid) != ppid);
+#else
+ {
+ int val = __getpid();
+ THREAD_SETMEM (self, tid, val);
+# warning fetch both getpid() and ktid via SYS_thr_self
+ }
+#endif
if (__fork_generation_pointer != NULL)
*__fork_generation_pointer += 4;
@@ -206,7 +214,7 @@
if (atomic_decrement_and_test (&allp->handler->refcntr)
&& allp->handler->need_signal)
- lll_futex_wake (allp->handler->refcntr, 1, LLL_PRIVATE);
+ lll_futex_wake (&allp->handler->refcntr, 1, LLL_PRIVATE);
allp = allp->next;
}
More information about the Glibc-bsd-commits
mailing list