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:
64c3782
)
Call logfile_close() and logfile_reopen() (tweaked function names).
author
Wayne Davison
<wayned@samba.org>
Thu, 14 Apr 2005 16:08:12 +0000
(16:08 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 14 Apr 2005 16:08:12 +0000
(16:08 +0000)
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
adab8e3
..
279b24e
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-478,7
+478,7
@@
void start_accept_loop(int port, int (*fn)(int, int))
/* close log file before the potentially very long select so
* file can be trimmed by another process instead of growing
* forever */
/* close log file before the potentially very long select so
* file can be trimmed by another process instead of growing
* forever */
- log_close();
+ log
file
_close();
#ifdef FD_COPY
FD_COPY(&deffds, &fds);
#ifdef FD_COPY
FD_COPY(&deffds, &fds);
@@
-507,8
+507,8
@@
void start_accept_loop(int port, int (*fn)(int, int))
for (i = 0; sp[i] >= 0; i++)
close(sp[i]);
/* Re-open log file in child before possibly giving
for (i = 0; sp[i] >= 0; i++)
close(sp[i]);
/* Re-open log file in child before possibly giving
- * up privileges (see log_close() above). */
- log
_
open();
+ * up privileges (see log
file
_close() above). */
+ log
file_re
open();
ret = fn(fd, fd);
close_all();
_exit(ret);
ret = fn(fd, fd);
close_all();
_exit(ret);