tty.c, NCL: job control related fix..
commit2a8b5c558b9d6ab153463f7c91c7d60e7351a1c4
authorSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Mon, 21 Oct 2013 15:32:56 +0000 (21 17:32 +0200)
committerSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Wed, 23 Oct 2013 16:04:29 +0000 (23 18:04 +0200)
tree472b4e092b51384e71cb1ce904d31488f5074055
parent498e4ad05e126b9d87d9922089a9318e79ad1e02
tty.c, NCL: job control related fix..

S-nail was not reacting correctly when it was changed from
a background to a foreground process, or whatever causes the modes
of its terminal to change.
So, instead of querying the file-descriptor flags only once, query
them each and every time when attempting to change the mode.

(TODO If there were a global state machine for TTOU+, then it
TODO should be sufficient to requery it once we get one of these,
TODO plus after CONT, of course.)
tty.c