Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean up error message
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
843c19b
..
d69e4cf
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-435,9
+435,10
@@
void start_accept_loop(int port, int (*fn)(int ))
* overloaded. Sleep briefly before trying to
* accept again. */
sleep(2);
+ } else {
+ /* Parent doesn't need this fd anymore. */
+ close(fd);
}
-
- close(fd);
}
}