From owner-freebsd-current Tue Aug 12 04:56:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA17700 for current-outgoing; Tue, 12 Aug 1997 04:56:03 -0700 (PDT) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA17686 for ; Tue, 12 Aug 1997 04:55:59 -0700 (PDT) Received: (from sos@localhost) by sos.freebsd.dk (8.8.7/8.7.3) id NAA02332 for current@freebsd.org; Tue, 12 Aug 1997 13:56:17 +0200 (MEST) From: Søren Schmidt Message-Id: <199708121156.NAA02332@sos.freebsd.dk> Subject: Error in sleep ! To: current@freebsd.org (FreeBSD current) Date: Tue, 12 Aug 1997 13:56:17 +0200 (MEST) X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I've noticed sleep is"broken in current.. Run the little program at the end, and notice that the program exits the sleep call prematurely if a signal is catched. The remaining sleep period is not resumed after the signal.. This works as expected on 2.2.1 and the 10 or so other platforms I've tested sofar... Peter ?? #include myfunc() { printf("signal!\n"); } main() { signal(SIGINT, myfunc); printf("running\n"); sleep(20); printf("stopping\n"); } -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..