Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 563 → Rev 564

/shark/trunk/kernel/exchand.c
18,11 → 18,11
 
/**
------------
CVS : $Id: exchand.c,v 1.4 2004-03-10 16:42:51 giacomo Exp $
CVS : $Id: exchand.c,v 1.5 2004-04-16 11:18:14 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2004-03-10 16:42:51 $
Revision: $Revision: 1.5 $
Last update: $Date: 2004-04-16 11:18:14 $
------------
**/
 
47,6 → 47,7
 
#include <kernel/kern.h>
#include <stdlib.h>
#include <string.h>
#include <tracer.h>
 
static int myflag;
89,9 → 90,12
int set_default_exception_handler(void)
{
struct sigaction action;
int i;
 
myflag = 0;
 
for(i=0;i<500;i++) shutdown_message_buffer[i] = 0;
 
sys_atrunlevel(theend, NULL, RUNLEVEL_AFTER_EXIT);
 
/* Init the standard S.Ha.R.K. exception handler */
108,14 → 112,13
va_list parms;
int result = -1;
if (!myflag_shutdown) {
myflag_shutdown = 1;
va_start(parms,fmt);
result = vsprintf(shutdown_message_buffer,fmt,parms);
va_end(parms);
}
myflag_shutdown = 1;
va_start(parms,fmt);
result = vsprintf(shutdown_message_buffer+strlen(shutdown_message_buffer),fmt,parms);
va_end(parms);
return(result);
 
}
 
static void thehandler(int signo, siginfo_t *info, void *extra)
124,7 → 127,6
myflag = 1;
myinfo = *info;
sys_gettime(&mytime),
 
sys_abort(AHEXC);
}
}