aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-10-14 01:46:24 +0000
committerrsc <devnull@localhost>2003-10-14 01:46:24 +0000
commit8110278003252f8579d61cd99392801a1857cdc2 (patch)
treea9dc958786a40afae24aeb4a9cb06d36c4b7a1c6 /src/libthread
parenta0abdf6219da9ad91b18937890e77294647a04c4 (diff)
downloadplan9port-8110278003252f8579d61cd99392801a1857cdc2.tar.gz
plan9port-8110278003252f8579d61cd99392801a1857cdc2.tar.bz2
plan9port-8110278003252f8579d61cd99392801a1857cdc2.zip
Fix a bug in Linux?
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/proctab.c4
1 files changed, 3 insertions, 1 deletions
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);