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
got rid of "EOF in map_ptr" problem. If a file shrinks mid transfer
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
5ee31f6
..
3c876ed
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-120,7
+120,7
@@
void start_accept_loop(int port, int (*fn)(int ))
{
int s;
{
int s;
- signal(SIGCLD, SIG_IGN);
+ signal(SIGC
H
LD, SIG_IGN);
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port);
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port);
@@
-216,6
+216,8
@@
set user socket options
void set_socket_options(int fd, char *options)
{
char *tok;
void set_socket_options(int fd, char *options)
{
char *tok;
+ if (!options || !*options) return;
+
options = strdup(options);
if (!options) out_of_memory("set_socket_options");
options = strdup(options);
if (!options) out_of_memory("set_socket_options");