The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6752

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Closes #6748
Closes #6743

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 5f34765f9118f5e36689267b6d66d82195e178b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Wed, 22 Jan 2020 15:15:24 +0200
Subject: [PATCH] lxd/daemon: Ignore SIGHUP
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #6748
Closes #6743

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/main_daemon.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxd/main_daemon.go b/lxd/main_daemon.go
index 64876128a9..69fddf8cd5 100644
--- a/lxd/main_daemon.go
+++ b/lxd/main_daemon.go
@@ -73,6 +73,9 @@ func (c *cmdDaemon) Run(cmd *cobra.Command, args []string) 
error {
        signal.Notify(ch, unix.SIGQUIT)
        signal.Notify(ch, unix.SIGTERM)
 
+       chIgnore := make(chan os.Signal)
+       signal.Notify(chIgnore, unix.SIGHUP)
+
        s := d.State()
        select {
        case sig := <-ch:
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to