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
90ddf3c0
Unverified
Commit
90ddf3c0
authored
Jan 09, 2020
by
Stéphane Graber
Committed by
GitHub
Jan 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3249 from brauner/2020-01-09/bugfixes
handle kernel version <--> header incompatibility
parents
f036cc8a
c718fac1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
mainloop.c
src/lxc/mainloop.c
+1
-0
start.c
src/lxc/start.c
+6
-4
api_reboot.c
src/tests/api_reboot.c
+1
-1
No files found.
src/lxc/mainloop.c
View file @
90ddf3c0
...
@@ -65,6 +65,7 @@ int lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd,
...
@@ -65,6 +65,7 @@ int lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd,
struct
epoll_event
ev
;
struct
epoll_event
ev
;
struct
mainloop_handler
*
handler
;
struct
mainloop_handler
*
handler
;
struct
lxc_list
*
item
;
struct
lxc_list
*
item
;
if
(
fd
<
0
)
if
(
fd
<
0
)
return
-
1
;
return
-
1
;
...
...
src/lxc/start.c
View file @
90ddf3c0
...
@@ -1091,11 +1091,13 @@ void lxc_abort(const char *name, struct lxc_handler *handler)
...
@@ -1091,11 +1091,13 @@ void lxc_abort(const char *name, struct lxc_handler *handler)
lxc_set_state
(
name
,
handler
,
ABORTING
);
lxc_set_state
(
name
,
handler
,
ABORTING
);
if
(
handler
->
pidfd
>=
0
)
if
(
handler
->
pidfd
>=
0
)
{
ret
=
lxc_raw_pidfd_send_signal
(
handler
->
pidfd
,
SIGKILL
,
NULL
,
0
);
ret
=
lxc_raw_pidfd_send_signal
(
handler
->
pidfd
,
SIGKILL
,
NULL
,
0
);
else
if
(
handler
->
pid
>
0
)
if
(
ret
)
ret
=
kill
(
handler
->
pid
,
SIGKILL
);
SYSWARN
(
"Failed to send SIGKILL via pidfd %d for process %d"
,
handler
->
pidfd
,
handler
->
pid
);
if
(
ret
<
0
)
}
if
(
ret
&&
(
errno
!=
ESRCH
)
&&
kill
(
handler
->
pid
,
SIGKILL
))
SYSERROR
(
"Failed to send SIGKILL to %d"
,
handler
->
pid
);
SYSERROR
(
"Failed to send SIGKILL to %d"
,
handler
->
pid
);
do
{
do
{
...
...
src/tests/api_reboot.c
View file @
90ddf3c0
...
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
...
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
*/
*/
sleep
(
5
);
sleep
(
5
);
if
(
!
c
->
reboot2
(
c
,
-
1
))
{
if
(
!
c
->
reboot2
(
c
,
60
))
{
lxc_error
(
"%s
\n
"
,
"Failed to reboot container
\"
reboot
\"
"
);
lxc_error
(
"%s
\n
"
,
"Failed to reboot container
\"
reboot
\"
"
);
goto
on_error_stop
;
goto
on_error_stop
;
}
}
...
...
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