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
b6609caf
Commit
b6609caf
authored
Jul 20, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Got rid of cleanup_buf (map-file cleanup is not needed).
- Renamed the cleanup_fd* vars.
parent
efa95a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
cleanup.c
cleanup.c
+8
-12
No files found.
cleanup.c
View file @
b6609caf
...
...
@@ -73,8 +73,7 @@ int cleanup_got_literal = 0;
static
char
*
cleanup_fname
;
static
char
*
cleanup_new_fname
;
static
struct
file_struct
*
cleanup_file
;
static
int
cleanup_fd1
,
cleanup_fd2
;
static
struct
map_struct
*
cleanup_buf
;
static
int
cleanup_fd_r
,
cleanup_fd_w
;
static
pid_t
cleanup_pid
=
0
;
pid_t
cleanup_child_pid
=
-
1
;
...
...
@@ -115,12 +114,10 @@ void _exit_cleanup(int code, const char *file, int line)
if
(
cleanup_got_literal
&&
cleanup_fname
&&
keep_partial
)
{
char
*
fname
=
cleanup_fname
;
cleanup_fname
=
NULL
;
if
(
cleanup_buf
)
unmap_file
(
cleanup_buf
);
if
(
cleanup_fd1
!=
-
1
)
close
(
cleanup_fd1
);
if
(
cleanup_fd2
!=
-
1
)
close
(
cleanup_fd2
);
if
(
cleanup_fd_r
!=
-
1
)
close
(
cleanup_fd_r
);
if
(
cleanup_fd_w
!=
-
1
)
close
(
cleanup_fd_w
);
finish_transfer
(
cleanup_new_fname
,
fname
,
cleanup_file
,
0
);
}
io_flush
(
FULL_FLUSH
);
...
...
@@ -161,14 +158,13 @@ void cleanup_disable(void)
void
cleanup_set
(
char
*
fnametmp
,
char
*
fname
,
struct
file_struct
*
file
,
struct
map_struct
*
buf
,
int
fd1
,
int
fd2
)
int
fd_r
,
int
fd_w
)
{
cleanup_fname
=
fnametmp
;
cleanup_new_fname
=
fname
;
cleanup_file
=
file
;
cleanup_buf
=
buf
;
cleanup_fd1
=
fd1
;
cleanup_fd2
=
fd2
;
cleanup_fd_r
=
fd_r
;
cleanup_fd_w
=
fd_w
;
}
void
cleanup_set_pid
(
pid_t
pid
)
...
...
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