* Damn. Added missing check for ->dead in listen queues scanning.
*
*/
-
+
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
* Keep the number of times in flight count for the file
* descriptor if it is for an AF_UNIX socket.
*/
-
+
void unix_inflight(struct file *fp)
{
struct sock *s = unix_get_socket(fp);
unix_sk(s)->gc_tree = GC_ORPHAN;
}
/*
- * Everything is now marked
+ * Everything is now marked
*/
/* Invariant to be maintained:
}
/*
- * Mark phase
+ * Mark phase
*/
while (!empty_stack())
spin_lock(&x->sk_receive_queue.lock);
skb = skb_peek(&x->sk_receive_queue);
-
+
/*
- * Loop through all but first born
+ * Loop through all but first born
*/
-
+
while (skb && skb != (struct sk_buff *)&x->sk_receive_queue) {
/*
* Do we have file descriptors ?