Browse Source

Added SIGKILL handler

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
92a78c8e15
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      src/net/udp/dns.c

+ 15
- 0
src/net/udp/dns.c View File

397
 	free ( dns );
397
 	free ( dns );
398
 }
398
 }
399
 
399
 
400
+/**
401
+ * Handle SIGKILL
402
+ *
403
+ * @v async		Asynchronous operation
404
+ */
405
+static void dns_sigkill ( struct async *async, enum signal signal __unused ) {
406
+	struct dns_request *dns =
407
+		container_of ( async, struct dns_request, async );
408
+
409
+	dns_done ( dns, -ECANCELED );
410
+}
411
+
400
 /** DNS asynchronous operations */
412
 /** DNS asynchronous operations */
401
 static struct async_operations dns_async_operations = {
413
 static struct async_operations dns_async_operations = {
402
 	.reap = dns_reap,
414
 	.reap = dns_reap,
415
+	.signal = {
416
+		[SIGKILL] = dns_sigkill,
417
+	},
403
 };
418
 };
404
 
419
 
405
 /**
420
 /**

Loading…
Cancel
Save