Fix using SDCV_PAGER

Stream opened with popen() should be closed with pclose() as documented
in popen(3) man.
This commit is contained in:
Anton Yuzhaninov
2017-03-07 18:37:52 -05:00
parent 7df514e117
commit 84367a5744

View File

@@ -288,7 +288,7 @@ namespace {
sdcv_pager& operator=(const sdcv_pager&) = delete;
~sdcv_pager() {
if (output != stdout)
fclose(output);
pclose(output);
}
FILE *get_stream() { return output; }
private: