connect.2: Note that a new socket should be used if connect() fails

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Haardt 2014-08-21 17:06:07 -05:00 committed by Michael Kerrisk
parent bea08fec7e
commit 977e3384e5
1 changed files with 6 additions and 0 deletions

View File

@ -267,6 +267,12 @@ Some POSIX confusion resulted in the present
also used by glibc.
See also
.BR accept (2).
If
.B connect()
fails, consider the state of the socket as unspecified.
Portable applications should close the socket and create a new one for
reconnecting.
.SH EXAMPLE
An example of the use of
.BR connect ()