From owner-cvs-lib Fri Jan 17 04:52:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA27777 for cvs-lib-outgoing; Fri, 17 Jan 1997 04:52:00 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA27759; Fri, 17 Jan 1997 04:51:59 -0800 (PST) Date: Fri, 17 Jan 1997 04:51:59 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199701171251.EAA27759@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libftpio ftpio.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 97/01/17 04:51:58 Modified: lib/libftpio ftpio.c Log: Yow! Is my face red... I just noticed (duh) that signal() always installs the handler with SA_RESTART set, so the system calls I wanted to have the timeout effect will just restart instead (which is NOT what I wanted). Sheepishly use sigaction() like a good boy and make timeouts actually do something. Also pass errors out more effectively so that fetch(1) actually understands what went wrong. Revision Changes Path 1.23 +41 -9 src/lib/libftpio/ftpio.c