summaryrefslogtreecommitdiffstats
path: root/usr.bin/showmount
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-17 21:49:01 +0000
committerdes <des@FreeBSD.org>2000-07-17 21:49:01 +0000
commit403f5cc58eb8dd8a39afb2043d662fd3e23ca637 (patch)
tree69c67ea12d9515b0477e30328f4cb9089525499e /usr.bin/showmount
parent3033318809d10165bff918597656578a8dc16bd9 (diff)
downloadFreeBSD-src-403f5cc58eb8dd8a39afb2043d662fd3e23ca637.zip
FreeBSD-src-403f5cc58eb8dd8a39afb2043d662fd3e23ca637.tar.gz
Rearrange / rewrite large portions of fetch() to take advantage of new
libfetch features (fetchRestartCalls, fetchXGet()). Since it doesn't make much sense to have m_flag and r_flag set at the same time, and it can actually cause trouble in some cases, die if they're both set. Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can kill ourselves with a second SIGINT (thus notifying our parent of our tragic fate) instead of just exiting. These changes fix several problems that would show up when fetching ports, as well as speeding up HTTP transfers quite a bit (at least for relatively small files). Most of these changes were prompted by an interaction problem with an HTTP server called SWS-1.0, which exhibited two bugs, the first of which prevented fetch from working around the second (the first was not sending content-type in reply to HEAD requests, the second was sending garbage after the end of the requested file).
Diffstat (limited to 'usr.bin/showmount')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud