mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +00:00
Fix using SDCV_PAGER
Stream opened with popen() should be closed with pclose() as documented in popen(3) man.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user