2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 15:21:32 +00:00

Added SIGKILL handler

This commit is contained in:
Michael Brown 2007-01-19 15:19:52 +00:00
parent 13d9a660ca
commit 92a78c8e15

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,
},
};
/**