tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061
authorDenys Vlasenko <dvlasenk@redhat.com>
Mon, 10 Jan 2011 11:51:44 +0000 (12:51 +0100)
committerDenys Vlasenko <dvlasenk@redhat.com>
Mon, 10 Jan 2011 11:51:44 +0000 (12:51 +0100)
commit84dba9c5bbd99cb80c0e201bbffa27a51766c63f
treed872deb94f11d7c7104ffa00d48c0e3dae126541
parent7b305646e12536e9aa62d2768d48bf2d2d78caa5
tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061

This was breaking timeout handling.

function                                             old     new   delta
tftp_progress_update                                   -      45     +45
tftp_progress_done                                     -      32     +32
tftp_protocol                                       1839    1858     +19
tftp_progress_init                                     9      15      +6
tftp_main                                            298     286     -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12)            Total: 90 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
libbb/progress.c
networking/tftp.c