Merge Request #5

Merged
jerasure/gf-complete!5
Created by Loic Dachary

use assert instead of exit

the previous merge request was incorrectly against master. It now is twice in master which is not a problem but it's not in v2.

Assignee: None
Milestone: None
Checking for CI status for e7131cfd

Merged by KMG

Commits (1)
  • When a fatal error (unaligned memory etc.) is detected, gf-complete 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 29427efac2ce362fce8e4f5f5f1030feba942b73)
    Loic Dachary
     
2 participants