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
8f64a3f6
Commit
8f64a3f6
authored
May 26, 2010
by
Michel Normand
Committed by
Daniel Lezcano
May 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sigprocmask moved in fini of start.c
Signed-off-by:
Michel Normand
<
normand@fr.ibm.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
8ff35180
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
start.c
src/lxc/start.c
+4
-3
No files found.
src/lxc/start.c
View file @
8f64a3f6
...
@@ -398,6 +398,10 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
...
@@ -398,6 +398,10 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
lxc_set_state
(
name
,
handler
,
STOPPING
);
lxc_set_state
(
name
,
handler
,
STOPPING
);
lxc_set_state
(
name
,
handler
,
STOPPED
);
lxc_set_state
(
name
,
handler
,
STOPPED
);
/* reset mask set by setup_sigchld_fd */
if
(
sigprocmask
(
SIG_SETMASK
,
&
handler
->
oldmask
,
NULL
))
WARN
(
"failed to restore sigprocmask"
);
lxc_delete_console
(
&
handler
->
conf
->
console
);
lxc_delete_console
(
&
handler
->
conf
->
console
);
lxc_delete_tty
(
&
handler
->
conf
->
tty_info
);
lxc_delete_tty
(
&
handler
->
conf
->
tty_info
);
free
(
handler
->
name
);
free
(
handler
->
name
);
...
@@ -609,9 +613,6 @@ int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf)
...
@@ -609,9 +613,6 @@ int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf)
while
(
waitpid
(
handler
->
pid
,
&
status
,
0
)
<
0
&&
errno
==
EINTR
)
while
(
waitpid
(
handler
->
pid
,
&
status
,
0
)
<
0
&&
errno
==
EINTR
)
continue
;
continue
;
if
(
sigprocmask
(
SIG_SETMASK
,
&
handler
->
oldmask
,
NULL
))
WARN
(
"failed to restore sigprocmask"
);
err
=
lxc_error_set_and_log
(
handler
->
pid
,
status
);
err
=
lxc_error_set_and_log
(
handler
->
pid
,
status
);
out_fini:
out_fini:
lxc_unlink_nsgroup
(
name
);
lxc_unlink_nsgroup
(
name
);
...
...
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