From b8d93039fcdf89e112b0eda66f5702ef7201b1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= Date: Tue, 9 Jan 2018 11:29:46 +0100 Subject: [PATCH] Use of pclose when popen finish --- src/poller/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poller/system.c b/src/poller/system.c index eaec928..c913a20 100644 --- a/src/poller/system.c +++ b/src/poller/system.c @@ -36,6 +36,6 @@ struct monitor_value *system_solve_response(const char *command, void *unused) { } monitor_value *ret = new_monitor_value_fstream(command_stream); - fclose(command_stream); + pclose(command_stream); return ret; }