[Glibc-bsd-commits] r2558 - trunk/glibc-ports/kfreebsd

Aurelien Jarno aurel32 at alioth.debian.org
Mon Jun 1 12:44:51 UTC 2009


Author: aurel32
Date: 2009-06-01 12:44:51 +0000 (Mon, 01 Jun 2009)
New Revision: 2558

Modified:
   trunk/glibc-ports/kfreebsd/init-first.c
Log:
Ignore SIGSYS by default, in order to detect missing syscalls


Modified: trunk/glibc-ports/kfreebsd/init-first.c
===================================================================
--- trunk/glibc-ports/kfreebsd/init-first.c	2009-06-01 09:05:59 UTC (rev 2557)
+++ trunk/glibc-ports/kfreebsd/init-first.c	2009-06-01 12:44:51 UTC (rev 2558)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sysdep.h>
+#include <signal.h>
 #include <fpu_control.h>
 #include <sys/param.h>
 #include <sys/types.h>
@@ -67,6 +68,12 @@
 	__setfpucw (__fpu_control);
     }
 
+  /* By default on kFreeBSD when a call to non existing syscall is
+     made, the program is terminated. As we want to be able to detect
+     missing syscalls and provide a fallback code, we ignore the SIGSYS
+     signal. */
+  signal(SIGSYS, SIG_IGN);
+
   /* Save the command-line arguments.  */
   __libc_argc = argc;
   __libc_argv = argv;




More information about the Glibc-bsd-commits mailing list