Project

General

Profile

Actions

Bug #3769

closed

Implement SOCK_NONBLOCK flag to socket()

Added by Theo Schlossnagle over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
kernel
Start date:
2013-05-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

With the integration of 3666, the socket() implementation treats SOCK_NONBLOCK as a noop. This causes applications to believe the socket returned is in non-blocking more when it is not.

Implement the SOCK_NONBLOCK flag correctly. In addition, implement the SOCK_NDELAY flag to match accept4().

Return failure and set errno to EINVAL if unknown flags are passed in.

Actions

Also available in: Atom PDF