Re: [code] [textadept] lspawn 0.3

From: Mitchell <m.att.foicica.com>
Date: Thu, 28 Mar 2013 09:54:22 -0400 (Eastern Daylight Time)

Ryan,

On Wed, 27 Mar 2013, Ryan Pusztai wrote:

> 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.

Oops, you're right. Revert that change and apply the attached patch. That
should fix the issue. I'm not sure if there's a more elegant way to do
this though.

Cheers,
Mitchell

-- 
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 Thu 28 Mar 2013 - 09:54:22 EDT

This archive was generated by hypermail 2.2.0 : Fri 29 Mar 2013 - 06:51:45 EDT