bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] readline bug with backgrounded process?


From: Chet Ramey
Subject: Re: [Bug-readline] readline bug with backgrounded process?
Date: Mon, 14 Apr 2014 10:06:44 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 4/13/14, 6:46 PM, Thomas Klausner wrote:
> Hi!
> 
> Since a couple of weeks ago, gnucash as installed by pkgsrc on
> NetBSD-6.99.40/amd64 doesn't start in the background any longer for
> me.
> 
> It looks like this (in zsh):

It looks like gnucash, when linked with readline, attempts to write to the
controlling terminal and gets a SIGTTOU.

>> gnucash &
> [1] 8065
>>
> [1]  + suspended (tty output)  gnucash
>> fg
> [1]  + continued  gnucash
> Found Finance::Quote version 1.18
> (runs)

And it appears that the above message about `Quote version 1.18' is what it
tries to write.

I suppose it could be readline reacting to the SIGTTOU and calling the
signal hook, but I doubt that python has a signal hook assigned.  If
there's no signal hook, readline just passes the signal through to the
calling application.  In the case of SIGTTOU, unless the calling
application is ignoring it, the process will be stopped.

It might be useful to get a stack traceback from the gnucash process
when it gets a SIGTTOU.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]