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

From: Jeff Dike (jdike@karaya.com)
Date: Sun Aug 18 2002 - 21:28:18 EST


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/



This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:16 EST