david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Added SIGKILL handler

This commit is contained in:
Michael Brown 2007-01-19 15:19:52 +00:00
parent 13d9a660ca
commit 92a78c8e15
1 changed files with 15 additions and 0 deletions

View File

@ -397,9 +397,24 @@ static void dns_reap ( struct async *async ) {
free ( dns );
}
/**
* Handle SIGKILL
*
* @v async Asynchronous operation
*/
static void dns_sigkill ( struct async *async, enum signal signal __unused ) {
struct dns_request *dns =
container_of ( async, struct dns_request, async );
dns_done ( dns, -ECANCELED );
}
/** DNS asynchronous operations */
static struct async_operations dns_async_operations = {
.reap = dns_reap,
.signal = {
[SIGKILL] = dns_sigkill,
},
};
/**