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
186dfb16
Commit
186dfb16
authored
Feb 05, 2018
by
Tycho Andersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc.init: ignore SIGHUP
see comment for details. Signed-off-by:
Tycho Andersen
<
tycho@tycho.ws
>
parent
d4b5d7a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lxc_init.c
src/lxc/lxc_init.c
+11
-0
No files found.
src/lxc/lxc_init.c
View file @
186dfb16
...
@@ -382,6 +382,17 @@ int main(int argc, char *argv[])
...
@@ -382,6 +382,17 @@ int main(int argc, char *argv[])
switch
(
was_interrupted
)
{
switch
(
was_interrupted
)
{
case
0
:
case
0
:
/* Some applications send SIGHUP in order to get init to reload
* its configuration. We don't want to forward this onto the
* application itself, because it probably isn't expecting this
* signal since it was expecting init to do something with it.
*
* Instead, let's explicitly ignore it here. The actual
* terminal case is handled in the monitor's handler, which
* sends this task a SIGTERM in the case of a SIGHUP, which is
* what we want.
*/
case
SIGHUP
:
break
;
break
;
case
SIGPWR
:
case
SIGPWR
:
case
SIGTERM
:
case
SIGTERM
:
...
...
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