From 7fe33f7bfdcc25c80532d3d4b0d343f6d45359a8 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 20 Aug 2014 13:37:49 +0200 Subject: [PATCH] Handle signal SIGILL for ARM --- src/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.c b/src/main.c index 26779506..719ba4aa 100644 --- a/src/main.c +++ b/src/main.c @@ -181,6 +181,16 @@ handle_sigpipe(int x) return; } +static void +handle_sigill(int x) +{ + /* Note that on some platforms, the SSL library tries */ + /* to determine the CPU capabilities with possible */ + /* unknown instructions */ + tvhwarn("CPU", "Illegal instruction handler (might be OK)"); + signal(SIGILL, handle_sigill); +} + void doexit(int x) { @@ -678,6 +688,7 @@ main(int argc, char **argv) tvhinfo("main", "Log started"); signal(SIGPIPE, handle_sigpipe); // will be redundant later + signal(SIGILL, handle_sigill); // see handler.. tcp_server_preinit(opt_ipv6); http_server_init(opt_bindaddr); // bind to ports only