Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
0521367f
Commit
0521367f
authored
Sep 28, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service: Remove actually unused pid variable from service state
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
9bc82f49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
cr-service.c
cr-service.c
+1
-3
cr-service.h
include/cr-service.h
+0
-1
No files found.
cr-service.c
View file @
0521367f
...
...
@@ -88,7 +88,6 @@ static int setup_dump_from_req(CriuDumpReq *req)
return
-
1
;
}
cr_service_client
->
pid
=
ids
.
pid
;
cr_service_client
->
uid
=
ids
.
uid
;
if
(
fstat
(
cr_service_client
->
sk_fd
,
&
st
))
{
...
...
@@ -99,8 +98,7 @@ static int setup_dump_from_req(CriuDumpReq *req)
cr_service_client
->
sk_ino
=
st
.
st_ino
;
/* going to dir, where to place images*/
sprintf
(
images_dir_path
,
"/proc/%d/fd/%d"
,
cr_service_client
->
pid
,
req
->
images_dir_fd
);
sprintf
(
images_dir_path
,
"/proc/%d/fd/%d"
,
ids
.
pid
,
req
->
images_dir_fd
);
if
(
chdir
(
images_dir_path
))
{
pr_perror
(
"Can't chdir to images directory"
);
...
...
include/cr-service.h
View file @
0521367f
...
...
@@ -13,7 +13,6 @@ int send_criu_dump_resp(int socket_fd, bool success, bool restored);
struct
_cr_service_client
{
int
sk_ino
;
int
uid
;
int
pid
;
int
sk_fd
;
};
...
...
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