lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKgNAki3mgQPnXm72d7Hyp2tW16T8Qr2dA5Cevqo9rGtmXedyg@mail.gmail.com>
Date:	Fri, 9 Nov 2012 07:00:23 +0100
From:	"Michael Kerrisk (man-pages)" <mtk.manpages@...il.com>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	linux-man@...r.kernel.org, netdev@...r.kernel.org,
	Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH] socket.7: Correctly describe SO_SNDTIMEO for connect

Hi Andi,

On Thu, Nov 8, 2012 at 4:55 PM, Andi Kleen <andi@...stfloor.org> wrote:
> From: Andi Kleen <ak@...ux.intel.com>
>
> When SO_SNDTIMEO is set before connect() connect may return EWOULDBLOCK
> when the timeout fires. Describe this correctly.

Thanks.

Applied.

Cheers,

Michael


> Signed-off-by: Andi Kleen <ak@...ux.intel.com>
> ---
>  man7/socket.7 |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/man7/socket.7 b/man7/socket.7
> index cd75746..9e05f48 100644
> --- a/man7/socket.7
> +++ b/man7/socket.7
> @@ -434,6 +434,9 @@ set to
>  .B EAGAIN
>  or
>  .B EWOULDBLOCK
> +or
> +.B EINPROGRESS
> +(for connect)
>  .\" in fact to EAGAIN
>  just as if the socket was specified to be nonblocking.
>  If the timeout is set to zero (the default)
> @@ -442,6 +445,7 @@ Timeouts only have effect for system calls that perform socket I/O (e.g.,
>  .BR read (2),
>  .BR recvmsg (2),
>  .BR send (2),
> +.BR connect (2),
>  .BR sendmsg (2));
>  timeouts have no effect for
>  .BR select (2),
> --
> 1.7.7.6
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ