From 8110278003252f8579d61cd99392801a1857cdc2 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 14 Oct 2003 01:46:24 +0000 Subject: Fix a bug in Linux? --- src/libthread/proctab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libthread') diff --git a/src/libthread/proctab.c b/src/libthread/proctab.c index 4029652a..222d8c25 100644 --- a/src/libthread/proctab.c +++ b/src/libthread/proctab.c @@ -29,12 +29,14 @@ __threadgetproc(int rm) Thread *t; ulong *s; +/* fails on linux, probably because the main stack + * has to be grown a page at a time instead of the big jump? s = (ulong*)((ulong)&pid & ~(STKSIZE-1)); if(s[0] == STKMAGIC){ t = (Thread*)s[1]; return t->proc; } - +*/ pid = _threadgetpid(); lock(&ptablock); -- cgit v1.2.3