We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8841e07 commit 1267ce4Copy full SHA for 1267ce4
context.c
@@ -30,6 +30,7 @@
30
#include <arpa/inet.h>
31
#include <event2/event.h>
32
#include <getdns/getdns_ext_libevent.h>
33
+#include <sys/wait.h>
34
#include "pygetdns.h"
35
36
int
@@ -68,12 +69,14 @@ void
68
69
context_dealloc(getdns_ContextObject *self)
70
{
71
getdns_context *context;
72
+ int status;
73
74
if ((context = PyCapsule_GetPointer(self->py_context, "context")) == NULL) {
75
return;
76
}
77
Py_XDECREF(self->py_context);
78
getdns_context_destroy(context);
79
+ (void)wait(&status); /* reap the process spun off by unbound */
80
81
82
0 commit comments