[vlc-devel] commit: use _exit() instead of exit() when checking CPU capabilities ( Martin T. Sandsmark )
git version control
git at videolan.org
Tue Dec 29 18:58:07 CET 2009
vlc | branch: master | Martin T. Sandsmark <sandsmark at samfundet.no> | Tue Dec 29 16:31:33 2009 +0100| [2a817cdbc2cd282b353cace71a8cd603d8151893] | committer: Rémi Denis-Courmont
use _exit() instead of exit() when checking CPU capabilities
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a817cdbc2cd282b353cace71a8cd603d8151893
---
src/misc/cpu.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 5b46fa9..6c979fd 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -119,7 +119,7 @@ uint32_t CPUCapabilities( void )
if( pid == 0 ) \
{ \
__asm__ __volatile__ ( code : : ); \
- exit(0); \
+ _exit(0); \
} \
if( check_OS_capability((name), pid )) \
i_capabilities |= (flag); \
@@ -273,7 +273,7 @@ out:
"vand %%v0, %%v0, %%v0"
:
: "r" (-1));
- exit(0);
+ _exit(0);
}
if( check_OS_capability( "Altivec", pid ) )
More information about the vlc-devel
mailing list