From 26cd53f078db858a6ccca338e13e7f4d1d291c22 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 22 Dec 2017 13:42:27 +0100 Subject: executor: remove dead code doexit already contains an infinite loop. --- executor/common_linux.h | 2 -- pkg/csource/linux_common.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/executor/common_linux.h b/executor/common_linux.h index 90a873582..fc60e3a70 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -154,8 +154,6 @@ static void segv_handler(int sig, siginfo_t* info, void* uctx) } debug("SIGSEGV on %p, exiting\n", addr); doexit(sig); - for (;;) { - } } static void install_segv_handler() diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index 5d207bd11..3ed6fc2f4 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -300,8 +300,6 @@ static void segv_handler(int sig, siginfo_t* info, void* uctx) } debug("SIGSEGV on %p, exiting\n", addr); doexit(sig); - for (;;) { - } } static void install_segv_handler() -- cgit mrf-deployment