Commit Diff


commit - a0abdf6219da9ad91b18937890e77294647a04c4
commit + 8110278003252f8579d61cd99392801a1857cdc2
blob - 4029652a7ca372cb42f00f89554707f71e993bde
blob + 222d8c25d7705c2e9aac168c021023caf04b337b
--- src/libthread/proctab.c
+++ 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);