It is just implicit that raise will not return in this case because we are in a sighandler right now. So let call exit always afterwards even if it will not be reached.
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de --- batman/posix/posix.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/batman/posix/posix.c b/batman/posix/posix.c index 4423345..bbeac38 100644 --- a/batman/posix/posix.c +++ b/batman/posix/posix.c @@ -497,11 +497,10 @@ void restore_and_exit( uint8_t is_sigsegv ) {
}
- if (!is_sigsegv) - exit(EXIT_FAILURE); - else + if (is_sigsegv) raise(SIGSEGV);
+ exit(EXIT_FAILURE); }