]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commit
use assert(0) instead of exit(1)
authorLoic Dachary <ldachary@redhat.com>
Mon, 15 Dec 2014 11:08:37 +0000 (12:08 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 25 Dec 2014 00:59:13 +0000 (01:59 +0100)
commit9f580be227ab52566a0ad9f1f823208b765362d3
treee2437f9abe263cd2340eac5fb42e9c21c6c51cb1
parent7313600fc1c63234b51413721afaafedd36359c4
use assert(0) instead of exit(1)

When a fatal error (unaligned memory etc.) is detected, jerasure
should assert(3) instead of exit(3) to give a chance to the calling
program to catch the exception and display a stack trace. Although it is
possible for gdb to display the stack trace and break on exit, libraries
are not usually expected to terminate the calling program in this way.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 36008101d5fd1e3d19230828c0eb231869569893)
src/galois.c
src/jerasure.c
src/reed_sol.c