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
ccce9fed
Commit
ccce9fed
authored
Sep 12, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tty: Brush up ctl tty preparation
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
1838bee1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
cr-restore.c
cr-restore.c
+3
-5
files.c
files.c
+9
-1
No files found.
cr-restore.c
View file @
ccce9fed
...
@@ -135,11 +135,9 @@ static int prepare_shared(void)
...
@@ -135,11 +135,9 @@ static int prepare_shared(void)
if
(
ret
<
0
)
if
(
ret
<
0
)
break
;
break
;
if
(
pi
->
ctl_tty_id
)
{
ret
=
prepare_ctl_tty
(
pi
->
pid
.
virt
,
pi
->
rst
,
pi
->
ctl_tty_id
);
ret
=
prepare_ctl_tty
(
pi
->
pid
.
virt
,
pi
->
rst
,
pi
->
ctl_tty_id
);
if
(
ret
<
0
)
if
(
ret
<
0
)
break
;
break
;
}
}
}
mark_pipe_master
();
mark_pipe_master
();
...
...
files.c
View file @
ccce9fed
...
@@ -198,9 +198,17 @@ static int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info)
...
@@ -198,9 +198,17 @@ static int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info)
int
prepare_ctl_tty
(
int
pid
,
struct
rst_info
*
rst_info
,
u32
ctl_tty_id
)
int
prepare_ctl_tty
(
int
pid
,
struct
rst_info
*
rst_info
,
u32
ctl_tty_id
)
{
{
FdinfoEntry
*
e
=
xmalloc
(
sizeof
(
*
e
));
FdinfoEntry
*
e
;
if
(
!
ctl_tty_id
)
return
0
;
pr_info
(
"Requesting for ctl tty %#x into service fd
\n
"
,
ctl_tty_id
);
e
=
xmalloc
(
sizeof
(
*
e
));
if
(
!
e
)
if
(
!
e
)
return
-
1
;
return
-
1
;
fdinfo_entry__init
(
e
);
fdinfo_entry__init
(
e
);
e
->
id
=
ctl_tty_id
;
e
->
id
=
ctl_tty_id
;
...
...
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