The following commit has been merged in the master branch: commit 6b0ac8c8b3f33016240316db7461c7319e8a6628 Author: Marek Lindner lindner_marek@yahoo.de Date: Sat Mar 24 23:04:34 2007 +0100
fix SIGSEGV loop on openwrt
diff --git a/batman.c b/batman.c index 5fc6269..dea9056 100644 --- a/batman.c +++ b/batman.c @@ -578,8 +578,8 @@ int8_t batman() { prof_init( PROF_update_gw_list, "update_gw_list" ); prof_init( PROF_is_duplicate, "isDuplicate" ); prof_init( PROF_get_orig_node, "get_orig_node" ); - prof_init( PROF_update_originator, "update_originator" ); - prof_init( PROF_purge_orginator, "purge_orginator" ); + prof_init( PROF_update_originator, "update_orig" ); + prof_init( PROF_purge_orginator, "purge_orig" ); prof_init( PROF_schedule_forward_packet, "schedule_forward_packet" ); prof_init( PROF_send_outstanding_packets, "send_outstanding_packets" );
diff --git a/posix-specific.c b/posix-specific.c index 8934446..9f414b1 100644 --- a/posix-specific.c +++ b/posix-specific.c @@ -1633,6 +1633,8 @@ void restore_and_exit() {
void segmentation_fault( int32_t sig ) {
+ signal( SIGSEGV, SIG_DFL ); + debug_output( 0, "Error - SIGSEGV received !\n" );
restore_and_exit();