Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13-ac8 /kernel/timer.c

Filename:/kernel/timer.c
Lines Added:6
Lines Deleted:0
Also changed in: (Previous) 2.4.13-ac7  2.4.13-ac6  2.4.13-ac5  2.4.13-ac4  2.4.13-ac3  2.4.13-ac1 
(Following) 2.4.19-pre1-ac3  2.4.19-pre2-ac2  2.4.19-pre2-ac3  2.4.19-pre2-ac4  2.4.19-pre3-ac1  2.4.19-pre3-ac2 

Location
[  2.4.13-ac8
  [  kernel
     o  timer.c

Patch

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;
 }
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.