Re: [code] [textadept] proc:kill()

From: Mitchell <m.att.foicica.com>
Date: Tue, 13 May 2014 17:45:02 -0400 (EDT)

Richard,

On Mon, 12 May 2014, Richard Philips wrote:

> Hi Mitchell,
>
> (sorry if did already sent this message - I found it back in my drafts
> folder and I'm not sure I sent it out ;-)
>
> Again about spawn and proc :-)
>
>
> I'm using proc:kill().
>
> It works perfectly with Unix (Ubuntu) but in Windows it causes problems.
>
> The kill is executed, there is no error but the process remains alive.
> If, after the kill, I issue a proc:status(), textadept freezes and I have
> to force quit it.
>
> The following example ON WINDOWS illustrates the problem:
>
>
> function test()
> local process = spawn("charmap.exe") -- launches Windows character map
> ui.dialogs.msgbox{ -- shows the status of the process
> title = 'Alert!',
> width = 900,
> float = true,
> icon = 'gtk-dialog-info',
> text = process:status()
> }
>
> process:kill() -- kills the process but does not succeed
>
> ui.dialogs.msgbox{ -- shows the status of the process
> title = 'Alert!',
> width = 900,
> float = true,
> icon = 'gtk-dialog-info',
> text = process:status()
> }
>
>
> -- textadept is not stable anymore
>
> end

The instability should be fixed in tonight's nightly. However, 'charmap'
is an odd program. After spawning it, I am able to kill it (as far as
Textadept reports), but the window does not close...

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 Tue 13 May 2014 - 17:45:02 EDT

This archive was generated by hypermail 2.2.0 : Wed 14 May 2014 - 06:51:49 EDT