Re: [code] [textadept] lspawn 0.3

From: Ryan Pusztai <rpusztai.att.gmail.com>
Date: Wed, 27 Mar 2013 16:38:26 -0400

Hi Mitchell,

On Wed, Mar 27, 2013 at 3:25 PM, Mitchell <m.att.foicica.com> wrote:
>
> The fix is to replace lines 60 and 61 in lspawn.c
>
> int status = g_io_channel_read_chars(ch, buf, 1024, &len, NULL);
> if (status == G_IO_STATUS_NORMAL && len > 0) {
>
> with
>
> while (g_io_channel_read_chars(ch, buf, 1024, &len, NULL) ==
> G_IO_STATUS_NORMAL && len > 0) {
>

This makes it freeze TA until the process returns, which is how TA acts if
you don't use lspawn. :)
However it did get the full amount of the message now.

--
Regards,
Ryan
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 27 Mar 2013 - 16:38:26 EDT

This archive was generated by hypermail 2.2.0 : Thu 28 Mar 2013 - 06:48:22 EDT