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
c3e13372
Commit
c3e13372
authored
Jan 19, 2010
by
Clement Calmels
Committed by
Daniel Lezcano
Jan 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless lines
Signed-off-by:
Clement Calmels
<
clement.calmels@fr.ibm.com
>
Signed-off-by:
Cedric Le Goater
<
clg@fr.ibm.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
9d7f9e52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
start.c
src/lxc/start.c
+4
-12
No files found.
src/lxc/start.c
View file @
c3e13372
...
@@ -158,7 +158,6 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
...
@@ -158,7 +158,6 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
{
{
int
sigfd
=
handler
->
sigfd
;
int
sigfd
=
handler
->
sigfd
;
int
pid
=
handler
->
pid
;
int
pid
=
handler
->
pid
;
int
ret
=
-
1
;
struct
lxc_epoll_descr
descr
;
struct
lxc_epoll_descr
descr
;
if
(
lxc_mainloop_open
(
&
descr
))
{
if
(
lxc_mainloop_open
(
&
descr
))
{
...
@@ -174,16 +173,13 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
...
@@ -174,16 +173,13 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
if
(
lxc_command_mainloop_add
(
name
,
&
descr
,
handler
))
if
(
lxc_command_mainloop_add
(
name
,
&
descr
,
handler
))
goto
out_mainloop_open
;
goto
out_mainloop_open
;
ret
=
lxc_mainloop
(
&
descr
);
return
lxc_mainloop
(
&
descr
);
out:
return
ret
;
out_mainloop_open:
out_mainloop_open:
lxc_mainloop_close
(
&
descr
);
lxc_mainloop_close
(
&
descr
);
out_sigfd:
out_sigfd:
close
(
sigfd
);
close
(
sigfd
);
goto
out
;
return
-
1
;
}
}
static
int
fdname
(
int
fd
,
char
*
name
,
size_t
size
)
static
int
fdname
(
int
fd
,
char
*
name
,
size_t
size
)
...
@@ -271,10 +267,7 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf)
...
@@ -271,10 +267,7 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf)
LXC_TTY_ADD_HANDLER
(
SIGINT
);
LXC_TTY_ADD_HANDLER
(
SIGINT
);
LXC_TTY_ADD_HANDLER
(
SIGQUIT
);
LXC_TTY_ADD_HANDLER
(
SIGQUIT
);
out:
INFO
(
"'%s' is initialized"
,
name
);
if
(
handler
)
INFO
(
"'%s' is initialized"
,
name
);
return
handler
;
return
handler
;
out_delete_tty:
out_delete_tty:
...
@@ -283,8 +276,7 @@ out_aborting:
...
@@ -283,8 +276,7 @@ out_aborting:
lxc_set_state
(
name
,
handler
,
ABORTING
);
lxc_set_state
(
name
,
handler
,
ABORTING
);
out_free:
out_free:
free
(
handler
);
free
(
handler
);
handler
=
NULL
;
return
NULL
;
goto
out
;
}
}
void
lxc_fini
(
const
char
*
name
,
struct
lxc_handler
*
handler
)
void
lxc_fini
(
const
char
*
name
,
struct
lxc_handler
*
handler
)
...
...
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