mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The default break signal mask (SIGBREAKF_CTRL_C) is no longer
hard-coded. You can override it at link time with a different variable value for __break_signal_mask. This may have to be augmented by an API for changing the value. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15094 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: unistd_time_delay.c,v 1.8 2006-04-05 06:43:56 obarthel Exp $
|
||||
* $Id: unistd_time_delay.c,v 1.9 2006-04-05 08:39:45 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -103,7 +103,7 @@ __time_delay(unsigned long seconds,unsigned long microseconds)
|
||||
SetSignal(0,signals_to_wait_for);
|
||||
|
||||
if(__check_abort_enabled)
|
||||
SET_FLAG(signals_to_wait_for,SIGBREAKF_CTRL_C);
|
||||
SET_FLAG(signals_to_wait_for,__break_signal_mask);
|
||||
|
||||
PROFILE_OFF();
|
||||
GetSysTime(&tv);
|
||||
@@ -119,7 +119,7 @@ __time_delay(unsigned long seconds,unsigned long microseconds)
|
||||
signals = Wait(signals_to_wait_for);
|
||||
PROFILE_ON();
|
||||
|
||||
if(FLAG_IS_SET(signals,SIGBREAKF_CTRL_C))
|
||||
if(FLAG_IS_SET(signals,__break_signal_mask))
|
||||
{
|
||||
ULONG seconds_now;
|
||||
|
||||
@@ -128,7 +128,7 @@ __time_delay(unsigned long seconds,unsigned long microseconds)
|
||||
|
||||
WaitIO((struct IORequest *)__timer_request);
|
||||
|
||||
SetSignal(SIGBREAKF_CTRL_C,SIGBREAKF_CTRL_C);
|
||||
SetSignal(__break_signal_mask,__break_signal_mask);
|
||||
__check_abort();
|
||||
|
||||
/* Now figure out how many seconds have elapsed and
|
||||
|
||||
Reference in New Issue
Block a user