Thread (3 messages) flat view 3 messages, 3 authors, 2007-06-18

Re: [PATCH] fix race in AF_UNIX

From: Thomas Graf <tgraf@suug.ch>
Date: 2007-06-18 10:43:29
Also in: lkml

* Miklos Szeredi [off-list ref] 2007-06-18 12:39
You are wrong.  Look in unix_release_sock():

	if (atomic_read(&unix_tot_inflight))
		unix_gc();		/* Garbage collect fds */


unix_tot_inflight is the number of AF_UNIX sockets currently being
transferred over some AF_UNIX sockets.

That means that just sending (non-unix socket) fds over unix sockets
will never invoke the gc.
That's what I meant, I'm sorry, I should have written unix socket
file descriptor to not leave any room for misinterpretation.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help