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
change to allow names or numbers to be used for uid and gid.
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
7027338
..
a92cccd
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-116,7
+116,7
@@
int is_a_socket(int fd)
}
}
-
int
start_accept_loop(int port, int (*fn)(int ))
+
void
start_accept_loop(int port, int (*fn)(int ))
{
int s;
{
int s;
@@
-125,12
+125,12
@@
int start_accept_loop(int port, int (*fn)(int ))
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port);
if (s == -1)
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port);
if (s == -1)
-
return(-
1);
+
exit(
1);
/* ready to listen */
if (listen(s, 5) == -1) {
close(s);
/* ready to listen */
if (listen(s, 5) == -1) {
close(s);
-
return -1
;
+
exit(1)
;
}
}
@@
-163,7
+163,6
@@
int start_accept_loop(int port, int (*fn)(int ))
close(fd);
}
close(fd);
}
- return 0;
}
}