diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-05-14 10:20:20 +0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-05-14 10:20:20 +0800 |
commit | 41b5fee26c9b8b8c9ffd3a3aa47cf61a6fcca7db (patch) | |
tree | 5d62c3f0da0b7f96c1114c9775445fb41a93a3c2 | |
parent | ef8a49519a2d68decab41bb716aec1bfb6713b58 (diff) | |
download | vyatta-cfg-41b5fee26c9b8b8c9ffd3a3aa47cf61a6fcca7db.tar.gz vyatta-cfg-41b5fee26c9b8b8c9ffd3a3aa47cf61a6fcca7db.zip |
close pipe fd before returning
-rw-r--r-- | src/cli_new.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 2cb0c03..f01d2a4 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -2290,6 +2290,7 @@ system_out(char *cmd, const char *prepend_msg, boolean eloc) if (!prepend) { fprintf(out_stream, "\n"); } + close(pfd[0]); if (!waited) { if (waitpid(cpid, &status, 0) != cpid) { return -1; |