The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4657
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) === If the source connection is closed and the corresponding file is closed too the UDP listener will die anyway. Signed-off-by: Christian Brauner <[email protected]>
From 66a31d68ec829ec790e144c71c7de84a9a9a4108 Mon Sep 17 00:00:00 2001 From: Christian Brauner <[email protected]> Date: Fri, 15 Jun 2018 15:44:18 +0200 Subject: [PATCH] proxy: remove UDP SIGKILL logic If the source connection is closed and the corresponding file is closed too the UDP listener will die anyway. Signed-off-by: Christian Brauner <[email protected]> --- lxd/main_forkproxy.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lxd/main_forkproxy.go b/lxd/main_forkproxy.go index 074bb8c72..a103d9fc9 100644 --- a/lxd/main_forkproxy.go +++ b/lxd/main_forkproxy.go @@ -354,16 +354,12 @@ func (c *cmdForkproxy) Run(cmd *cobra.Command, args []string) error { signal.Notify(sigs, syscall.SIGTERM) // Wait for SIGTERM and close the listener in order to exit the loop below - killOnUDP := syscall.Getpid() go func() { <-sigs terminate = true file.Close() if lAddr.connType == "udp" { srcConn.Close() - // Kill ourselves since we will otherwise block on UDP - // connect() or poll(). - syscall.Kill(killOnUDP, syscall.SIGKILL) } else { listener.Close() }
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
