summaryrefslogtreecommitdiff
path: root/src/dged/process-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dged/process-posix.c')
-rw-r--r--src/dged/process-posix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dged/process-posix.c b/src/dged/process-posix.c
index 94ceb5f..7cfb29b 100644
--- a/src/dged/process-posix.c
+++ b/src/dged/process-posix.c
@@ -117,7 +117,11 @@ struct process_create_result process_create(char *const command[],
};
}
-void process_destroy(struct process *p) { (void)p; }
+void process_destroy(struct process *p) {
+ close(p->stdin);
+ close(p->stdout);
+ close(p->stderr);
+}
bool process_running(const struct process *p) {
return waitpid(p->id, NULL, WNOHANG) == 0;