aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2015-11-25 16:17:52 +0200
committerSergey Poznyakoff <gray@gnu.org>2015-11-25 16:17:52 +0200
commit9cb7455b12462a3679ed5208540793d802570481 (patch)
tree73f24a9752e78ec2c97e4c94259bbec1ce1134f4
parent944f922aebac63e0a668b4d9abae418a57a6720d (diff)
downloadpies-9cb7455b12462a3679ed5208540793d802570481.tar.gz
pies-9cb7455b12462a3679ed5208540793d802570481.tar.bz2
Fix descriptor leak
* src/progman.c (prog_start): Close redirection fd's * grecs: Upgrade.
m---------grecs0
-rw-r--r--src/progman.c2
2 files changed, 2 insertions, 0 deletions
diff --git a/grecs b/grecs
-Subproject add57c075c6f747a81c142ab48d59106de82266
+Subproject e71c1a855797de245105494a05623753e32844a
diff --git a/src/progman.c b/src/progman.c
index 90d54b5..12969ab 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -1292,6 +1292,8 @@ prog_start (struct prog *prog)
else if (is_sysvinit (prog->v.p.comp))
sysvinit_acct (SYSV_ACCT_PROC_START, "", prog->tag, pid, "");
+ close (redir[RETR_OUT]);
+ close (redir[RETR_ERR]);
prog->pid = pid;
prog->v.p.status = status_enabled;
debug (1, (_("%s started, pid=%lu"), prog->tag, (unsigned long) pid));

Return to:

Send suggestions and report system problems to the System administrator.