Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
28eafc46
Unverified
Commit
28eafc46
authored
Feb 24, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
criu: do_restore()
thread-safety: s/exit()/_exit()/g Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a7d1eef7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
criu.c
src/lxc/criu.c
+5
-4
No files found.
src/lxc/criu.c
View file @
28eafc46
...
@@ -823,8 +823,9 @@ out_unlock:
...
@@ -823,8 +823,9 @@ out_unlock:
return
!
has_error
;
return
!
has_error
;
}
}
// do_restore never returns, the calling process is used as the
/* do_restore never returns, the calling process is used as the monitor process.
// monitor process. do_restore calls exit() if it fails.
* do_restore calls _exit() if it fails.
*/
static
void
do_restore
(
struct
lxc_container
*
c
,
int
status_pipe
,
struct
migrate_opts
*
opts
,
char
*
criu_version
)
static
void
do_restore
(
struct
lxc_container
*
c
,
int
status_pipe
,
struct
migrate_opts
*
opts
,
char
*
criu_version
)
{
{
int
fd
,
ret
;
int
fd
,
ret
;
...
@@ -1040,7 +1041,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
...
@@ -1040,7 +1041,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
if
(
ret
)
if
(
ret
)
lxc_abort
(
c
->
name
,
handler
);
lxc_abort
(
c
->
name
,
handler
);
lxc_fini
(
c
->
name
,
handler
);
lxc_fini
(
c
->
name
,
handler
);
exit
(
ret
);
_
exit
(
ret
);
}
}
out_fini_handler:
out_fini_handler:
...
@@ -1065,7 +1066,7 @@ out:
...
@@ -1065,7 +1066,7 @@ out:
close
(
status_pipe
);
close
(
status_pipe
);
}
}
exit
(
1
);
_exit
(
EXIT_FAILURE
);
}
}
static
int
save_tty_major_minor
(
char
*
directory
,
struct
lxc_container
*
c
,
char
*
tty_id
,
int
len
)
static
int
save_tty_major_minor
(
char
*
directory
,
struct
lxc_container
*
c
,
char
*
tty_id
,
int
len
)
...
...
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