ido / libvma-old

Automatically exported from code.google.com/p/libvma
Other
0 stars 1 forks source link

handle SOCK_NONBLOCK and SOCK_CLOEXEC socket() flags #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since 2.6.27 the socket() systemcall accepts SOCK_NONBLOCK and
SOCK_CLOEXEC as flags.

Original issue reported on code.google.com by shawn.bo...@gmail.com on 6 Feb 2014 at 11:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, I pushed the patch.
Please note that FD_CLOEXEC is not implemented for offloaded sockets.
Also, VMA does not support fork well, meaning parent and child cannot share an 
offloaded socket.
I’m not sure how usage of FD_CLOEXEC affect it, and if it might bring up some 
issues.

https://code.google.com/p/libvma/source/detail?r=81afb5e6cab7a3a66246237f06862e9
94317dfad

Original comment by orkmella...@gmail.com on 7 Feb 2014 at 1:48