fix timing bug in tracecontrol
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 20 Sep 2005 21:49:05 +0000 (21:49 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 20 Sep 2005 21:49:05 +0000 (21:49 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1245 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/tracecontrol/tracecontrol.c

index 3f6a4f3cd941dfce7198ebf54a8b74d352a8e35d..1407aa88bbd4850429f2e356c38af5a51b6b63dd 100644 (file)
@@ -438,7 +438,7 @@ static int execute_command(const gchar *command, const gchar *username,
     sleep(1); /* make sure the child is ready */
     while(1) {
       pollfd.fd = fdpty;
-      pollfd.events = POLLIN|POLLPRI;
+      pollfd.events = POLLIN|POLLPRI|POLLERR|POLLHUP|POLLNVAL;
 
       num_rdy = poll(&pollfd, 1, 200);
 #if 0
@@ -496,7 +496,7 @@ static int execute_command(const gchar *command, const gchar *username,
     while(1) {
       int num_hup = 0;
       pollfd.fd = fdpty;
-      pollfd.events = POLLIN|POLLPRI;
+      pollfd.events = POLLIN|POLLPRI|POLLERR|POLLHUP|POLLNVAL;
 
       num_rdy = poll(&pollfd, 1, -1);
 #if 0
This page took 0.024466 seconds and 4 git commands to generate.