Repository navigation
Conversation
|
Okay, this makes the ctrl-c test hang. |
|
So, I've tried a different fix: Instead of checking all jobs, we now only take control of the terminal if the finished job had it to begin with. The assumption being that if that job didn't have it, and we don't have it, then whoever has it deserves it. |
|
Close, but no cigar. This improves the situation a tiny bit, but not enough for me to want to keep that hack. |
|
Does #4268 affect the underlying problem here? |
|
@mqudsi: It doesn't seem to. Like I've said, the issue is that the second |
|
OK, thanks. I was wondering because I did change code that would have caused a SIGTTOU or SIGTTIN to be signaled for the main thread when marshaling child processes. |
Description
In some cases one process of a job quits early, and fish then reassumes control of the terminal. This is especially prevalent with
while readloops (since every read only lasts for a single line).We "fix" this by checking if all interactive jobs have finished before reassuming control. It's not a real fix (presumably that involves not considering the job finished in this case), but should be a good workaround.
Since this has some potential for breaking stuff, I'd appreciate some testing.
Fixes issue #4238.
TODOs:
Since this is a bug-fix, I'd like to have it in 2.7.0.