rsocket library and dup2()

From: Alex Couvrard <hidden>
Date: 2012-09-03 17:31:51

Hi,

I found the following code in dup2():

	oldfdi = idm_lookup(&idm, oldfd);
	if (oldfdi && oldfdi->type == fd_fork)
		fork_passive(oldfd);

In that code the file descriptor type ("type") is compared with a fork
state enum value ("fd_fork"). Is that on purpose ??

Merci,

Alex.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help