diff options
author | des <des@FreeBSD.org> | 2000-07-17 20:49:39 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-07-17 20:49:39 +0000 |
commit | c1df3803c6ae4824f4b9e6dda8f88882598fb5b7 (patch) | |
tree | fc541174b9bd01ba292e8033c9dc5fad39f3d386 /lib/libfetch/fetch.c | |
parent | 94b736448402e59ddb377056dc08e1470a95fb1d (diff) | |
download | FreeBSD-src-c1df3803c6ae4824f4b9e6dda8f88882598fb5b7.zip FreeBSD-src-c1df3803c6ae4824f4b9e6dda8f88882598fb5b7.tar.gz |
Introduce the (undocumented) variable fetchRestartCalls, which controls whether
or not interrupted system calls will be restarted. This fixes a bug where
fetch(1) would hang (potentially forever) if a server stopped responding,
because the signal handler would absorb the user's efforts to interrupt the
transfer.
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r-- | lib/libfetch/fetch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c index 5d83db5..adb95c9 100644 --- a/lib/libfetch/fetch.c +++ b/lib/libfetch/fetch.c @@ -43,6 +43,7 @@ int fetchLastErrCode; char fetchLastErrString[MAXERRSTRING]; int fetchTimeout; +int fetchRestartCalls = 1; /*** Local data **************************************************************/ |