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
69ffa311
Commit
69ffa311
authored
May 26, 2010
by
Michel Normand
Committed by
Daniel Lezcano
May 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move LXC_TTY_HANDLER_ADD/DEL out of init/fini in start.c
Signed-off-by:
Michel Normand
<
normand@fr.ibm.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
8f64a3f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
start.c
src/lxc/start.c
+6
-7
No files found.
src/lxc/start.c
View file @
69ffa311
...
...
@@ -369,10 +369,6 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf)
goto
out_delete_console
;
}
/* Avoid signals from terminal */
LXC_TTY_ADD_HANDLER
(
SIGINT
);
LXC_TTY_ADD_HANDLER
(
SIGQUIT
);
INFO
(
"'%s' is initialized"
,
name
);
return
handler
;
...
...
@@ -406,9 +402,6 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
lxc_delete_tty
(
&
handler
->
conf
->
tty_info
);
free
(
handler
->
name
);
free
(
handler
);
LXC_TTY_DEL_HANDLER
(
SIGQUIT
);
LXC_TTY_DEL_HANDLER
(
SIGINT
);
}
void
lxc_abort
(
const
char
*
name
,
struct
lxc_handler
*
handler
)
...
...
@@ -604,6 +597,10 @@ int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf)
goto
out_fini
;
}
/* Avoid signals from terminal */
LXC_TTY_ADD_HANDLER
(
SIGINT
);
LXC_TTY_ADD_HANDLER
(
SIGQUIT
);
err
=
lxc_poll
(
name
,
handler
);
if
(
err
)
{
ERROR
(
"mainloop exited with an error"
);
...
...
@@ -615,6 +612,8 @@ int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf)
err
=
lxc_error_set_and_log
(
handler
->
pid
,
status
);
out_fini:
LXC_TTY_DEL_HANDLER
(
SIGQUIT
);
LXC_TTY_DEL_HANDLER
(
SIGINT
);
lxc_unlink_nsgroup
(
name
);
lxc_fini
(
name
,
handler
);
return
err
;
...
...
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