add delay
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Sep 2005 19:32:48 +0000 (19:32 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 16 Sep 2005 19:32:48 +0000 (19:32 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1230 04897980-b3bd-0310-b5e0-8ef037075253

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

index 1193046d1feafbb17a58f72b741a0c42d8db3eef..3f6a4f3cd941dfce7198ebf54a8b74d352a8e35d 100644 (file)
@@ -435,6 +435,7 @@ static int execute_command(const gchar *command, const gchar *username,
     /* Read the output from the child terminal before the prompt. If no data in
      * 200 ms, we stop reading to give the password */
     g_info("Reading from child console...");
+    sleep(1); /* make sure the child is ready */
     while(1) {
       pollfd.fd = fdpty;
       pollfd.events = POLLIN|POLLPRI;
This page took 0.024387 seconds and 4 git commands to generate.