improve segfault error message, suggested by matthijs :)

git-svn-id: svn://code.dyne.org/veejay/trunk@1388 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2010-02-14 15:10:09 +00:00
parent 18e5887e28
commit c5c85b6fb9
2 changed files with 6 additions and 2 deletions

View File

@@ -311,8 +311,9 @@ static int veejay_process_status( veejay_preview_t *vp, veejay_track_t *v )
#endif #endif
if( status_len[0] != 'V' ) { if( status_len[0] != 'V' ) {
veejay_msg(0, "Error parsing status message.");
n = -1; n = -1;
k = -1;
break;
} }
if( n == -1 && v->is_master ) if( n == -1 && v->is_master )

View File

@@ -6625,7 +6625,10 @@ static void reloaded_sighandler(int x)
veejay_msg(VEEJAY_MSG_WARNING, "Stopping reloaded"); veejay_msg(VEEJAY_MSG_WARNING, "Stopping reloaded");
exit(0); exit(0);
} else if ( x == SIGSEGV ) { } else if ( x == SIGSEGV ) {
veejay_msg(VEEJAY_MSG_ERROR, "Bugs compromised the system."); veejay_msg(VEEJAY_MSG_ERROR, "Found Gremlins in your system.");
veejay_msg(VEEJAY_MSG_WARNING, "No fresh ale found in the fridge.");
veejay_msg(VEEJAY_MSG_INFO, "Running with sub-atomic precision...");
veejay_msg(VEEJAY_MSG_ERROR, "Bugs compromised the system.");
exit(0); exit(0);
} }
} }