Stable: 2.5.2
Development: 2.6-alpha3
Under Debian sid I can resize the terminal window (xterm, stterm or screen, i3 or fluxbox) once and moc responds. Any subsequent resizes and nothing happens.
I've tried compiling svn sources locally and recent revisions produce the same as the Debian package. Bisecting, it seems to be r2841 causing problems. How, I'm not sure.
Any hints?
jcf
Sun, 2016-08-14 23:50
Permalink
First Time Lucky, Eh?
Thanks for putting the effort in to try and isolate the problem to a specific commit.
No, I can't see anything which would cause an upset either. That commit doesn't change any programming.
I'm currently working on development in the screen interface area so I'll keep an eye open for any stray Pokemons gumming up the works, but if you want to pursue it yourself following the trail from a SIGWINCH might be productive. MOC now logs signals so my first check would be to see if subsequent SIGWINCHs are being received.
Dany
Mon, 2016-08-15 04:01
Permalink
There are signals that are
There are signals that are not activated.
The workaround is to do so:
See too:
https://github.com/daltomi/moc-patch/blob/master/0001-Fix-signal-zombie-SIG_CHLD.patch
lentinj
Sat, 2016-08-20 22:23
Permalink
signal() vs sigaction()
Yes, the patch above fixes my problems (annoyingly I didn't see the message until I'd made the same patch myself, but I got there in the end...).
When using signal(), the signal handler is removed after it is fired, thus any SIGWINCH'es after the first are never caught by MOC.
jcf
Sun, 2016-08-21 09:24
Permalink
The Joy of Alphas
Yes, there is a difference in behaviour there introduced by the POSIX change. There are several additional implications to be checked out.
Thanks for the testing, and thanks to "dany" (who should contact mocmaint if he didn't receive my e-mail to him).
jcf
Sun, 2016-09-25 02:42
Permalink
RESOLVED
A patch based on that above was committed as r2917.