summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-19 15:44:29 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-19 15:44:29 (GMT)
commit2a943d9264c995f3d2c55b3da202b88f67329750 (patch)
tree16a35312f8ad76d32c33492ce3ca53a353477400 /Source/kwsys/ProcessUNIX.c
parentb375c18b9ea256e2e9a05fd8465c6d90b86b6f5b (diff)
parentf788d9a1b27efc9b463b1174a93e780bef00a5d9 (diff)
downloadCMake-2a943d9264c995f3d2c55b3da202b88f67329750.zip
CMake-2a943d9264c995f3d2c55b3da202b88f67329750.tar.gz
CMake-2a943d9264c995f3d2c55b3da202b88f67329750.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index b9af2f1..faeb967 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -2449,6 +2449,7 @@ static void kwsysProcessKill(pid_t process_id)
if(f)
{
size_t nread = fread(buffer, 1, KWSYSPE_PIPE_BUFFER_SIZE, f);
+ fclose(f);
buffer[nread] = '\0';
if(nread > 0)
{
@@ -2463,7 +2464,6 @@ static void kwsysProcessKill(pid_t process_id)
}
}
}
- fclose(f);
}
}
}