usock: set socket flags right after creating it
authorRafał Miłecki <zajec5@gmail.com>
Thu, 15 Jan 2015 11:42:52 +0000 (12:42 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 15 Jan 2015 12:10:58 +0000 (13:10 +0100)
commitf1c794b29e2dac52ec25869bf8c37b3e230fb2a2
treeafd1117462fb50a006fa9a3ea9a979e66580f698
parentad9b5a387df86c3fa1bdf733b913f5bf4b751f21
usock: set socket flags right after creating it

Otherwise some flags like USOCK_NONBLOCK wouldn't work as expected
(O_NONBLOCK affects connect behavior).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
usock.c