diff options
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 7700ccf..942325c 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -1997,8 +1997,11 @@ static void kwsysProcessKill(pid_t process_id) kwsysProcessKill(pid); } } + } - /* We are done with the ps process. */ + /* We are done with the ps process. */ + if(ps) + { pclose(ps); } } |