Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
d0f9dcdf
Commit
d0f9dcdf
authored
Oct 29, 1999
by
sof
Browse files
[project @ 1999-10-29 14:01:53 by sof]
Pure Win32 builds doesn't support non-blocking IO
parent
9a2c72c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/misc/cbits/connectSocket.c
View file @
d0f9dcdf
...
...
@@ -18,11 +18,14 @@ connectSocket(I_ sockfd, A_ servaddr, I_ addrlen, I_ isUnixDomain)
int
rc
;
while
((
rc
=
connect
((
int
)
sockfd
,
(
struct
sockaddr
*
)
servaddr
,
(
int
)
addrlen
))
<
0
)
{
#if !defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__)
if
(
errno
==
EINPROGRESS
)
{
errno
=
0
;
return
FILEOBJ_BLOCKED_WRITE
;
}
else
if
(
errno
!=
EINTR
)
{
}
else
#endif
if
(
errno
!=
EINTR
)
{
cvtErrno
();
switch
(
ghc_errno
)
{
default:
...
...
@@ -33,7 +36,7 @@ connectSocket(I_ sockfd, A_ servaddr, I_ addrlen, I_ isUnixDomain)
if
(
isUnixDomain
!=
0
)
ghc_errstr
=
"For a component of path prefix of path name"
;
else
ghc_errstr
=
"Requested address protected, cannot bind socket"
;
ghc_errstr
=
"Requested address protected, cannot bind socket"
;
break
;
case
GHC_EISCONN
:
case
GHC_EADDRINUSE
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment