robryk/reptyr — comment on commit f1b78326793acbd16a80731b82904afd640a61c6
File: reptyr.c line 125
By nelhage:

This doesn't actually fix the interesting race condition. The tricky race is the one that happens if SIGWINCH happens after this point, but before we enter select(). In that case, we won't process the resize until we see further input on one side of the pty.

This patch does help things slightly, in that I believe it should mean we can't drop a SIGWINCH completely, which is an improvement.