aboutsummaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
commitea859f50d9438bc61ae96721a4d255b49de78653 (patch)
treebfb52a5f403ad1e86c562b2f4d608d1268fe8fcf /TraceScreen.c
parent266ab52b3a741a58fb17c48b0f7939d7c5d266de (diff)
downloaddebian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.tar.gz
debian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.tar.bz2
debian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.zip
Imported Upstream version 0.6.2upstream/0.6.2
Diffstat (limited to 'TraceScreen.c')
-rw-r--r--TraceScreen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/TraceScreen.c b/TraceScreen.c
index 9628290..a5feded 100644
--- a/TraceScreen.c
+++ b/TraceScreen.c
@@ -1,6 +1,6 @@
/*
htop - TraceScreen.c
-(C) 2005 Hisham H. Muhammad
+(C) 2005-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
@@ -11,11 +11,15 @@ in the source distribution for its full text.
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include "TraceScreen.h"
#include "ProcessList.h"
#include "Process.h"
#include "ListItem.h"
+#include "ListBox.h"
+#include "FunctionBar.h"
/*{
@@ -160,5 +164,6 @@ void TraceScreen_run(TraceScreen* this) {
ListBox_draw(lb, true);
}
kill(child, SIGTERM);
+ waitpid(child, NULL, 0);
fclose(strace);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy