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
dd2f1aad
Unverified
Commit
dd2f1aad
authored
May 13, 2020
by
Christian Brauner
Committed by
Stéphane Graber
May 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: remove unused lxc_zero_handler()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
ea2a67a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
start.c
src/lxc/start.c
+0
-25
start.h
src/lxc/start.h
+0
-1
No files found.
src/lxc/start.c
View file @
dd2f1aad
...
@@ -605,31 +605,6 @@ out_sigfd:
...
@@ -605,31 +605,6 @@ out_sigfd:
return
ret
;
return
ret
;
}
}
void
lxc_zero_handler
(
struct
lxc_handler
*
handler
)
{
memset
(
handler
,
0
,
sizeof
(
struct
lxc_handler
));
handler
->
state
=
STOPPED
;
handler
->
pinfd
=
-
EBADF
;
handler
->
pidfd
=
-
EBADF
;
handler
->
sigfd
=
-
EBADF
;
for
(
int
i
=
0
;
i
<
LXC_NS_MAX
;
i
++
)
handler
->
nsfd
[
i
]
=
-
EBADF
;
handler
->
data_sock
[
0
]
=
-
EBADF
;
handler
->
data_sock
[
1
]
=
-
EBADF
;
handler
->
state_socket_pair
[
0
]
=
-
EBADF
;
handler
->
state_socket_pair
[
1
]
=
-
EBADF
;
handler
->
sync_sock
[
0
]
=
-
EBADF
;
handler
->
sync_sock
[
1
]
=
-
EBADF
;
}
void
lxc_free_handler
(
struct
lxc_handler
*
handler
)
void
lxc_free_handler
(
struct
lxc_handler
*
handler
)
{
{
close_prot_errno_disarm
(
handler
->
pinfd
);
close_prot_errno_disarm
(
handler
->
pinfd
);
...
...
src/lxc/start.h
View file @
dd2f1aad
...
@@ -147,7 +147,6 @@ extern struct lxc_handler *lxc_init_handler(const char *name,
...
@@ -147,7 +147,6 @@ extern struct lxc_handler *lxc_init_handler(const char *name,
struct
lxc_conf
*
conf
,
struct
lxc_conf
*
conf
,
const
char
*
lxcpath
,
const
char
*
lxcpath
,
bool
daemonize
);
bool
daemonize
);
extern
void
lxc_zero_handler
(
struct
lxc_handler
*
handler
);
extern
void
lxc_free_handler
(
struct
lxc_handler
*
handler
);
extern
void
lxc_free_handler
(
struct
lxc_handler
*
handler
);
extern
int
lxc_init
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
extern
int
lxc_init
(
const
char
*
name
,
struct
lxc_handler
*
handler
);
extern
void
lxc_end
(
struct
lxc_handler
*
handler
);
extern
void
lxc_end
(
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