From: compudj Date: Tue, 20 Sep 2005 21:49:05 +0000 (+0000) Subject: fix timing bug in tracecontrol X-Git-Tag: v0.12.20~2244 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=75e2f3963d4718dd6a629b761966704f6443e597;hp=5e5b1de15a10a9822b173242a9bb72ec18b5b044;p=lttv.git fix timing bug in tracecontrol git-svn-id: http://ltt.polymtl.ca/svn@1245 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/tracecontrol/tracecontrol.c b/ltt/branches/poly/lttv/modules/gui/tracecontrol/tracecontrol.c index 3f6a4f3c..1407aa88 100644 --- a/ltt/branches/poly/lttv/modules/gui/tracecontrol/tracecontrol.c +++ b/ltt/branches/poly/lttv/modules/gui/tracecontrol/tracecontrol.c @@ -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