jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: asynchronous process problem


Guenter Milde <g.milde@xxxxxx> wrote:
>ashell();
>send_process (AShell_Id, "ispell -a \n");
>send_process (AShell_Id, "uffe");

My feeling is that the problem may be due to a race condition that is
causing the problem.  For example, I also see the same problem when
pasting 

   bash
   ispell -a
   uffe

into an xterm window.  Based upon this test I recommend that you call
sleep between ashell and send_process, i.e.,

   ashell();
   sleep (1);
   send_process (AShell_Id, "ispell -a \n");
   send_process (AShell_Id, "uffe\n");

This gives the underlying shell some time to get set up and initialize
the pseudo-terminal.

Thanks,
--John




--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]