projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc5632
)
Don't restart accept
author
Robert Swiecki
<swiecki@google.com>
Wed, 22 Jun 2016 12:07:40 +0000
(14:07 +0200)
committer
Robert Swiecki
<swiecki@google.com>
Wed, 22 Jun 2016 12:07:40 +0000
(14:07 +0200)
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index 831079f1b5091fa0be281a059c521bac27e80b12..98c4b48018be71938b05caf4297a3af56a6481a6 100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-269,7
+269,7
@@
int netAcceptConn(int listenfd)
{
struct sockaddr_in6 cli_addr;
socklen_t socklen = sizeof(cli_addr);
- int connfd =
TEMP_FAILURE_RETRY(accept(listenfd, (struct sockaddr *)&cli_addr, &socklen)
);
+ int connfd =
accept(listenfd, (struct sockaddr *)&cli_addr, &socklen
);
if (connfd == -1) {
if (errno != EINTR) {
PLOG_E("accept(%d)", listenfd);