From c1df3803c6ae4824f4b9e6dda8f88882598fb5b7 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 17 Jul 2000 20:49:39 +0000 Subject: 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. --- lib/libfetch/fetch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libfetch/fetch.c') 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 **************************************************************/ -- cgit v1.1