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