Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 3 → Rev 252

/shark/trunk/kernel/cancel.c
18,11 → 18,11
 
/**
------------
CVS : $Id: cancel.c,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
CVS : $Id: cancel.c,v 1.2 2003-09-12 10:10:40 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:51 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-09-12 10:10:40 $
------------
 
This file contains:
87,8 → 87,10
{
kern_cli();
if (state != TASK_CANCEL_ENABLE &&
state != TASK_CANCEL_DISABLE)
state != TASK_CANCEL_DISABLE) {
kern_sti();
return -1;
}
 
*oldstate = (proc_table[exec_shadow].control & KILL_ENABLED) != 0;
proc_table[exec_shadow].control &= ~KILL_ENABLED;
103,8 → 105,10
{
kern_cli();
if (type != TASK_CANCEL_DEFERRED &&
type != TASK_CANCEL_ASYNCHRONOUS)
type != TASK_CANCEL_ASYNCHRONOUS) {
kern_sti();
return -1;
}
 
*oldtype = (proc_table[exec_shadow].control & KILL_DEFERRED) != 0;
proc_table[exec_shadow].control &= ~KILL_DEFERRED;