Skip Menu |
 

This queue is for tickets about the IO-Async CPAN distribution.

Report information
The Basics
Id: 120903
Status: new
Priority: 0/
Queue: IO-Async

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: termkey-level of teardown not performed after SIGINT exit
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-18125-1491224897-124.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 440
Download (untitled) / with headers
text/plain 440b
Hitting Ctrl-C to shut down a Tickit::Async program correctly stops the tickit-driver level of teardown (disabling altscreen, mouse, etc...) but does not do the termkey-level (termios ECHO, O_NONBLOCK). I suspect this is due to a refcount bug somewhere still holding the termkey instance open, or something like that. This should likely be rewritten to have an explicit ->shutdown method, rather than relying on refcount. -- Paul Evans
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-18125-1491224897-124.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-18125-1491224897-124.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-13244-1491922102-1035.120903-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 703
Download (untitled) / with headers
text/plain 703b
On Mon Apr 03 09:08:17 2017, PEVANS wrote: Show quoted text
> Hitting Ctrl-C to shut down a Tickit::Async program correctly stops > the tickit-driver level of teardown (disabling altscreen, mouse, > etc...) but does not do the termkey-level (termios ECHO, O_NONBLOCK). > > I suspect this is due to a refcount bug somewhere still holding the > termkey instance open, or something like that. > > This should likely be rewritten to have an explicit ->shutdown method, > rather than relying on refcount.
Actually, the termkey instance *is* destroyed here. The actual bug is that IO::Async is setting the O_NONBLOCK flag and nothing exists to remove it again. This is an IO::Async issue; I shall move it. -- Paul Evans


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.