From owner-freebsd-current Mon Sep 7 11:41:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13263 for freebsd-current-outgoing; Mon, 7 Sep 1998 11:41:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nagual.pp.ru (lsd.relcom.eu.net [193.125.27.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA13206 for ; Mon, 7 Sep 1998 11:41:16 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.9.1/8.9.1) id WAA03098 for current@freebsd.org; Mon, 7 Sep 1998 22:41:03 +0400 (MSD) (envelope-from ache) Message-ID: <19980907224103.A1833@nagual.pp.ru> Date: Mon, 7 Sep 1998 22:41:03 +0400 From: "Andrey A. Chernov" To: current@FreeBSD.ORG Subject: new sleep.c & SIGALRM problem Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG When SIGALRM comes at INT_MAX seconds, new sleep code kill the program instead of stopping sleep. Previous code works, so LONG_MAX comparison must be restored, it is pretty legal in C. -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message