SIG_WINCH ... getting out of our current state of disarray.

Julian Elischer julian at freebsd.org
Sun Apr 10 17:02:51 UTC 2016


On 4/04/2016 10:21 AM, Zaphod Beeblebrox wrote:
> So... here's the scenario... I'm running vi in screen on a server.  I
> resize my window.
>
> Now... screen seems to deliver the resize SIG_WINCH fine to the process...
> but it seems BSD (and I don't use enough linux to have checked) only
> delivers SIG_WINCH to the foreground process.
>
> Is it _bad_? to deliver SIG_WINCH to other terminal group processes?
> Surely a shell knows that it started a process and should wait, but
> something CTRL-Z'd or &'d might be a special case... dunno.
>
> Anyways... it seems that this would be something good to have happen.  As
> it is... i find myself resizing a window multiple times to the same size
> just to get SIG_WINCH delivered to the now running application.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
I've never worked this out..

I often end up doign ^Z and then stty  to set he size, and then fg.
having screen or tmux in ht emix makes it even worse..




More information about the freebsd-hackers mailing list