Commit 233b4157 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

CPU: force the SIGILL handler back to default after forking

In case the LibVLC application has overriden SIGILL, we really want to
crash rather than run the handler.
parent 76f6410c
......@@ -37,6 +37,7 @@
#ifndef WIN32
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#else
#include <errno.h>
#endif
......@@ -120,8 +121,9 @@ uint32_t CPUCapabilities( void )
pid_t pid = fork(); \
if( pid == 0 ) \
{ \
signal(SIGILL, SIG_DFL); \
__asm__ __volatile__ ( code : : ); \
_exit(0); \
_exit(0); \
} \
if( check_OS_capability((name), pid )) \
i_capabilities |= (flag); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment