Use pipe to collect consecutive raised SIGWINCH events. Then handle multiple events at a time treating them as a single one. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>