[lkml]   [2002]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6

the attached patch ontop of BK-curr fixes the ptrace wait4() anomaly that
can be observed in any previous Linux kernel i could get my hands at. So
in fact ->ptrace_children, besides being a speedup, also fixed a bug that
couldnt be fixed in any satisfactory way before.


--- linux/kernel/exit.c.orig Tue Aug 20 16:28:57 2002
+++ linux/kernel/exit.c Tue Aug 20 16:30:13 2002
@@ -731,7 +731,7 @@
tsk = next_thread(tsk);
} while (tsk != current);
- if (flag) {
+ if (flag || !list_empty(&current->ptrace_children)) {
retval = 0;
if (options & WNOHANG)
goto end_wait4;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.140 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site