search for: addisonwesley

Displaying 1 result from an estimated 1 matches for "addisonwesley".

2010 Aug 19
1
odd situation slightly off topic (sending file descriptors to another process)
I have coded up the standard sendfd() and recvfd() for linux to send and recv file descriptors. seems to work (http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch17lev1sec4.html) however when I recvfd() my number of open file descriptors bumps by 2 and not 1. (using lsof -p X | wc -l) I am not sure why the count jumps by 2 and not 1. The sendfd() is just sending a socket descriptor. If I close() the provided descriptor it only closes 1...