summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2007-01-19 16:19:52 +0100
committerMichael Brown2007-01-19 16:19:52 +0100
commit92a78c8e15e523fea94b80b8f9c5757eb2d2ff6a (patch)
tree7f4f56a5523d25e87e0445e7f66449ab69ec7da0 /src
parentZeroing out memory before using it can be so important. (diff)
downloadipxe-92a78c8e15e523fea94b80b8f9c5757eb2d2ff6a.tar.gz
ipxe-92a78c8e15e523fea94b80b8f9c5757eb2d2ff6a.tar.xz
ipxe-92a78c8e15e523fea94b80b8f9c5757eb2d2ff6a.zip
Added SIGKILL handler
Diffstat (limited to 'src')
-rw-r--r--src/net/udp/dns.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c
index a5b658c29..ee6a58b5a 100644
--- a/src/net/udp/dns.c
+++ b/src/net/udp/dns.c
@@ -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,
+ },
};
/**