On Fri, May 23, 2014 at 06:49:24AM +0400, Dmitry V. Levin wrote: > On Thu, May 22, 2014 at 08:45:44PM +0530, Zubin Mithra wrote: > > I've restructured it a bit more, added in dup* calls, please see commit at > > [1] and sample output at [2]. > > > > [1] > > https://github.com/eQu1NoX/strace/commit/3d471ba8fccc531b8bc33b6467644b2d17ba8cc0 > > [2] https://gist.github.com/eQu1NoX/ccd6e2f9d45e2e0e82f9 > > > > > There is a receive call, that allows to forward open file descriptors > > > between > > > processes. I do not known, if you call those received fds "socket fds", > > > since > > > they could be any (unresolvable) fd -- unless you poke into /proc for more > > > information. > > > > Could you please give more information on which syscall you are referring > > to? I couldn't find a syscall that matched your description. > > recvmsg and recvmmsg, decoded using printcmsghdr (see SCM_RIGHTS). > I suppose it should just use printfd.
I've pushed the fix with a test for it. -- ldv
pgp2SAqHAu9nA.pgp
Description: PGP signature
------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel