Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

File descriptors are local to a process (after all, fd 0 is each process's personal stdin). The special extra data passed to sendmsg makes the kernel map a new fd in the receiving process, granting it access to the underlying file. It might help to consider that the fds in the two processes are likely not the same number.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: