summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@beast.(none)>2006-08-15 14:24:34 +0200
committerSjoerd Simons <sjoerd@beast.(none)>2006-08-15 14:24:34 +0200
commitfcb6aa0df90b7ee61a58c207896448131d3aa180 (patch)
treea956e9cb471039073c97bb897cfa9a5f46c7b63a
parent9ea9b86c3e44696da508326d2656b3988f883321 (diff)
hald-runner/runner.c: Close the stderr filedescriptor after reading it to
prevent leaks. Patch by Mike Hommey
-rw-r--r--hald-runner/runner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hald-runner/runner.c b/hald-runner/runner.c
index a2d1a210..73012338 100644
--- a/hald-runner/runner.c
+++ b/hald-runner/runner.c
@@ -163,6 +163,7 @@ run_exited(GPid pid, gint status, gpointer data)
if (rd->stderr_v >= 0) {
/* Need to read stderr */
error = get_string_array_from_fd(rd->stderr_v);
+ close(rd->stderr_v);
rd->stderr_v = -1;
}
if (rd->msg != NULL)