aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2021-01-06 04:43:14 +0000
committerlukem <lukem@NetBSD.org>2021-01-06 04:43:14 +0000
commitc3cbd3311842130ff3f210cdf3288820b7dc9f4f (patch)
tree9853772e2279c381a7420af3278b9492697273ba /include
parent9994951c25629f7a97332dc2eb2b7bf2af5ffb93 (diff)
downloadbsd-progress-c3cbd3311842130ff3f210cdf3288820b7dc9f4f.tar.gz
bsd-progress-c3cbd3311842130ff3f210cdf3288820b7dc9f4f.tar.zst
bsd-progress-c3cbd3311842130ff3f210cdf3288820b7dc9f4f.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/progressbar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/progressbar.h b/include/progressbar.h
index f627e88..daf382b 100644
--- a/include/progressbar.h
+++ b/include/progressbar.h
@@ -1,7 +1,7 @@
-/* $NetBSD: progressbar.h,v 1.8 2009/04/12 10:18:52 lukem Exp $ */
+/* $NetBSD: progressbar.h,v 1.9 2021/01/06 04:43:14 lukem Exp $ */
/*-
- * Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
+ * Copyright (c) 1996-2021 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@@ -68,7 +68,6 @@ int foregroundproc(void);
void alarmtimer(int);
void progressmeter(int);
sigfunc xsignal(int, sigfunc);
-sigfunc xsignal_restart(int, sigfunc, int);
#ifndef STANDALONE_PROGRESS
void psummary(int);