|
@@ -397,9 +397,24 @@ static void dns_reap ( struct async *async ) {
|
397
|
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
|
412
|
/** DNS asynchronous operations */
|
401
|
413
|
static struct async_operations dns_async_operations = {
|
402
|
414
|
.reap = dns_reap,
|
|
415
|
+ .signal = {
|
|
416
|
+ [SIGKILL] = dns_sigkill,
|
|
417
|
+ },
|
403
|
418
|
};
|
404
|
419
|
|
405
|
420
|
/**
|