catching SIGILL instead of dumping core - patch by Steven M. Schultz <[email protected]>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6130 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi committed 2002-05-20 00:01:14 +00:00
1 parent d900b93493
commit 376e46cbf1
1 file changed
+6 -1
Vendored
+6 -1
View File
@@ -722,7 +722,12 @@ if x86 && test "$_runtime_cpudetection" = no ; then
if test "$1" = yes ; then
echocheck "kernel support of $2"
cat > $TMPC <<EOF
int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);}
#include <signal.h>
void catch() { exit(1); }
int main(void){
signal(SIGILL, catch);
__asm__ __volatile__ ("$3":::"memory");return(0);
}
EOF
if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then