Re: tty state not restored after restarted stopped job

2018-05-07 Thread G.raud Meyer
On Fri, Apr 27, 2018 at 05:23:36PM +, Thorsten Glaser wrote: > From looking at the code, I donbt think it entirely correct. > Therebs a tty_hasstate, and one of the comments around it says > /* >* Only restore tty settings if job was originally >* started in the

Re: tty state not restored after restarted stopped job

2018-05-07 Thread G.raud Meyer
On Sat, Mar 31, 2018 at 09:36:23PM +, Thorsten Glaser wrote: > Hi, > > I sometimes have weird tty state even after a process finished; > this is mostly mpg123 running in foreground, so no backgrounding > involved. When I then press Enter, the tty is back to normal > state; is that true for

Re: tty state not restored after restarted stopped job

2018-04-27 Thread Thorsten Glaser
Hi again, >Thinking a bit more about this, I found a valid reason not to keep the >terminal state after a restarted job exits (successfully): the tty >state in which that job was started can be obsolete at the time it is >restarted because the tty state may have been modified while the job was

Re: tty state not restored after restarted stopped job

2018-04-01 Thread Thorsten Glaser
G.raud Meyer dixit: >First one should know what is the correct behaviour. The feature of […] >Before a patch fixing the strange case of a "successful but temporarily >stopped job has failed" it would be good to document the feature (and >the bug, if it is one). I honestly don’t know. It is