| Kernel v2.4.13-ac8 /kernel/timer.c |
|---|
 2.4.13-ac8
 kernel
 timer.c
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/kernel/timer.c linux.ac/kernel/timer.c
--- linux.vanilla/kernel/timer.c Thu Oct 11 13:52:14 2001
+++ linux.ac/kernel/timer.c Thu Oct 11 15:29:31 2001
@@ -719,6 +719,12 @@
asmlinkage long sys_getpid(void)
{
/* This is SMP safe - current->pid doesn't change */
+ /* This is crap because current->tgid can clash with a real
+ pid and a million other stupid problems
+ Fortunately you have to turn idiot mode on so you get what
+ you deserve. An exec also cleans up the mess so its not a
+ security risk, just a happy suprise for people dumb enough to
+ use it */
return current->tgid;
}
|