Commit 50c6b74a authored by Alexandre Julliard's avatar Alexandre Julliard

Added SIGNAL_Reset function.

parent 9e458b99
......@@ -1055,6 +1055,35 @@ BOOL SIGNAL_Init(void)
}
/**********************************************************************
* SIGNAL_Reset
*/
void SIGNAL_Reset(void)
{
sigset_t block_set;
/* block the async signals */
sigemptyset( &block_set );
sigaddset( &block_set, SIGALRM );
sigaddset( &block_set, SIGIO );
sigaddset( &block_set, SIGHUP );
sigaddset( &block_set, SIGUSR2 );
sigprocmask( SIG_BLOCK, &block_set, NULL );
/* restore default handlers */
signal( SIGINT, SIG_DFL );
signal( SIGFPE, SIG_DFL );
signal( SIGSEGV, SIG_DFL );
signal( SIGILL, SIG_DFL );
#ifdef SIGBUS
signal( SIGBUS, SIG_DFL );
#endif
#ifdef SIGTRAP
signal( SIGTRAP, SIG_DFL );
#endif
}
#ifdef __HAVE_VM86
/**********************************************************************
* __wine_enter_vm86
......
......@@ -364,6 +364,32 @@ BOOL SIGNAL_Init(void)
return FALSE;
}
/**********************************************************************
* SIGNAL_Reset
*/
void SIGNAL_Reset(void)
{
sigset_t block_set;
/* block the async signals */
sigemptyset( &block_set );
sigaddset( &block_set, SIGALRM );
sigaddset( &block_set, SIGIO );
sigaddset( &block_set, SIGHUP );
sigaddset( &block_set, SIGUSR2 );
sigprocmask( SIG_BLOCK, &block_set, NULL );
/* restore default handlers */
signal( SIGINT, SIG_DFL );
signal( SIGFPE, SIG_DFL );
signal( SIGSEGV, SIG_DFL );
signal( SIGILL, SIG_DFL );
signal( SIGBUS, SIG_DFL );
signal( SIGTRAP, SIG_DFL );
}
/**********************************************************************
* __wine_enter_vm86
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment