HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa8630e
)
Hide EINTR returns from 'accept'.
author
Ludovic Courtès
<ludo@gnu.org>
Sun, 15 Dec 2013 21:48:41 +0000
(22:48 +0100)
committer
Ludovic Courtès
<ludo@gnu.org>
Sun, 15 Dec 2013 21:48:41 +0000
(22:48 +0100)
* libguile/socket.c (scm_accept): Wrap 'accept' call in 'SCM_SYSCALL'.
libguile/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/socket.c
b/libguile/socket.c
index
ee84fa3
..
a0fb1a9
100644
(file)
--- a/
libguile/socket.c
+++ b/
libguile/socket.c
@@
-1331,7
+1331,7
@@
SCM_DEFINE (scm_accept, "accept", 1, 0, 0,
sock = SCM_COERCE_OUTPORT (sock);
SCM_VALIDATE_OPFPORT (1, sock);
fd = SCM_FPORT_FDES (sock);
-
newfd = accept (fd, (struct sockaddr *) &addr, &addr_size
);
+
SCM_SYSCALL (newfd = accept (fd, (struct sockaddr *) &addr, &addr_size)
);
if (newfd == -1)
SCM_SYSERROR;
newsock = SCM_SOCK_FD_TO_PORT (newfd);