Example #1
0
void Sys_SigAction(int sig, siginfo_t *info, void *v)
{
	ucontext_t *uc = (ucontext_t *)v;

	fprintf(stderr, "arm_pc = 0x%08x\n", uc->uc_mcontext.arm_pc);
	fprintf(stderr, "arm_lr = 0x%08x\n", uc->uc_mcontext.arm_lr);

	Sys_SigHandler(sig);
}
Example #2
0
/*
==================
CON_CtrlHandler

The Windows Console doesn't use signals for terminating the application
with Ctrl-C, logging off, window closing, etc.  Instead it uses a special
handler routine.  Fortunately, the values for Ctrl signals don't seem to
overlap with true signal codes that Windows provides, so calling
Sys_SigHandler() with those numbers should be safe for generating unique
shutdown messages.
==================
*/
static BOOL WINAPI CON_CtrlHandler(DWORD sig)
{
	Sys_SigHandler(sig);
	return TRUE;
}