Commit 15d3ea5655eca208cfecf4e42d2f3dbda1842eff

Stefan Sperling 2018-04-22T15:54:56

close pipe in unpriv child

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/object.c b/lib/object.c
index a069e1a..23a4cf3 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -270,6 +270,7 @@ done:
 		if (f)
 			fclose(f);
 		imsg_clear(&child_ibuf);
+		close(imsg_fds[1]);
 		_exit(status);
 	}