Re: [PATCH][RFC] sigurg/sigio cleanup for 2.5.31 [version 2]

Jeff Dike (jdike@karaya.com)
Sun, 18 Aug 2002 21:28:18 -0500


This is still wrong. You need to be checking fown->pid in the loop.

Same thing in send_sigurg.

Jeff

@@ -469,6 +492,12 @@
struct task_struct * p;
int pid = fown->pid;

+ if (!pid)
+ return;
+
+ while (pid == PID_INVALID)
+ cpu_relax();
+
read_lock(&tasklist_lock);
if ( (pid > 0) && (p = find_task_by_pid(pid)) ) {
send_sigio_to_task(p, fown, fd, band);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/