Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
8ee6adef
Commit
8ee6adef
authored
Apr 14, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call logfile_close() and logfile_reopen() (tweaked function names).
parent
64c37826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
socket.c
socket.c
+3
-3
No files found.
socket.c
View file @
8ee6adef
...
...
@@ -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 */
log_close
();
log
file
_close
();
#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
* 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment