diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-10 08:05:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-10 08:05:56 +0000 |
commit | 8ef4ffd6987bb566c268d2a353d5fea1cfd9e430 (patch) | |
tree | 586af037ed7042f44b1c31710924d649e04895dc /socket.c | |
parent | c596dad1d12bdec9e2c38e7a439612dd4d855a5b (diff) | |
download | rsync-8ef4ffd6987bb566c268d2a353d5fea1cfd9e430.tar.gz rsync-8ef4ffd6987bb566c268d2a353d5fea1cfd9e430.tar.bz2 rsync-8ef4ffd6987bb566c268d2a353d5fea1cfd9e430.zip |
change to allow names or numbers to be used for uid and gid.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; @@ -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) - return(-1); + exit(1); /* 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); } - return 0; } |