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
92eb5ff5
Commit
92eb5ff5
authored
Mar 24, 2016
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipe: Run master resolve via post_cb engine
Signed-off-by:
Pavel Emelyanov
<
xemul@virtuozzo.com
>
parent
3b288ca3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
cr-restore.c
criu/cr-restore.c
+0
-2
pipes.h
criu/include/pipes.h
+0
-1
pipes.c
criu/pipes.c
+7
-1
No files found.
criu/cr-restore.c
View file @
92eb5ff5
...
...
@@ -268,8 +268,6 @@ static int root_prepare_shared(void)
if
(
ret
<
0
)
goto
err
;
mark_pipe_master
();
ret
=
tty_setup_slavery
();
if
(
ret
)
goto
err
;
...
...
criu/include/pipes.h
View file @
92eb5ff5
...
...
@@ -6,7 +6,6 @@
extern
struct
collect_image_info
pipe_cinfo
;
extern
int
collect_pipes
(
void
);
extern
void
mark_pipe_master
(
void
);
extern
const
struct
fdtype_ops
pipe_dump_ops
;
static
inline
u32
pipe_id
(
const
struct
fd_parms
*
p
)
...
...
criu/pipes.c
View file @
92eb5ff5
...
...
@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <sys/mman.h>
#include "crtools.h"
#include "imgset.h"
#include "image.h"
#include "files.h"
...
...
@@ -93,7 +94,7 @@ int collect_pipe_data(int img_type, struct pipe_data_rst **hash)
}
/* Choose who will restore a pipe. */
void
mark_pipe_master
(
voi
d
)
static
int
mark_pipe_master
(
void
*
unuse
d
)
{
LIST_HEAD
(
head
);
...
...
@@ -156,6 +157,7 @@ void mark_pipe_master(void)
}
list_splice
(
&
head
,
&
pipes
);
return
0
;
}
static
struct
pipe_data_rst
*
pd_hash_pipes
[
PIPE_DATA_HASH_SIZE
];
...
...
@@ -394,6 +396,10 @@ static int collect_one_pipe(void *o, ProtobufCMessage *base)
list_add
(
&
pi
->
pipe_list
,
&
tmp
->
pipe_list
);
}
if
(
list_empty
(
&
pipes
))
if
(
add_post_prepare_cb
(
mark_pipe_master
,
NULL
))
return
-
1
;
list_add_tail
(
&
pi
->
list
,
&
pipes
);
return
0
;
...
...
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