Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
371d1c3
)
Fix error handling for failing to fork after accepting a connection --
author
Martin Pool
<mbp@samba.org>
Mon, 18 Feb 2002 22:58:49 +0000
(22:58 +0000)
committer
Martin Pool
<mbp@samba.org>
Mon, 18 Feb 2002 22:58:49 +0000
(22:58 +0000)
close fd, sleep, then try again.
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
843c19b
..
c4420ba
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-435,9
+435,9
@@
void start_accept_loop(int port, int (*fn)(int ))
* overloaded. Sleep briefly before trying to
* accept again. */
sleep(2);
* overloaded. Sleep briefly before trying to
* accept again. */
sleep(2);
+ } else {
+ close(fd);
}
}
-
- close(fd);
}
}
}
}