]> git.cameronkatri.com Git - bsd-progress.git/commit
ftp: don't use restartable signals
authorlukem <lukem@NetBSD.org>
Wed, 6 Jan 2021 04:43:14 +0000 (04:43 +0000)
committerlukem <lukem@NetBSD.org>
Wed, 6 Jan 2021 04:43:14 +0000 (04:43 +0000)
commitc3cbd3311842130ff3f210cdf3288820b7dc9f4f
tree9853772e2279c381a7420af3278b9492697273ba
parent9994951c25629f7a97332dc2eb2b7bf2af5ffb93
ftp: don't use restartable signals

Refactor to not rely upon restartable signals (SA_RESTART),
possibly fixing intermittent failures with -q QUITTIME.

ftp transfers: handle EINTR/EAGAIN in copy_bytes(),
instead of relying upon restartable signals.

http/https transfers: Explicitly print an error similar to
progressmeter() when timing-out for -Q QUITTIME in fetch_wait(),
and set errno to ETIMEDOUT so that the warn() in fetch_url()
prints a more accurate error message.

PR/55857
include/progressbar.h
progressbar.c