]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Handle signal SIGILL for ARM
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Aug 2014 11:37:49 +0000 (13:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Aug 2014 11:37:49 +0000 (13:37 +0200)
src/main.c

index 26779506ae21ee91df49ba498a27a2c63380c1f3..719ba4aa5088ee7c2a3e973f1820d3eef93960d8 100644 (file)
@@ -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