From owner-freebsd-bugs Sun Apr 5 00:20:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15147 for freebsd-bugs-outgoing; Sun, 5 Apr 1998 00:20:02 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15135; Sun, 5 Apr 1998 00:20:01 -0800 (PST) (envelope-from gnats) Received: from arh0300.urh.uiuc.edu (arh0300.urh.uiuc.edu [130.126.72.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14134; Sun, 5 Apr 1998 00:12:24 -0800 (PST) (envelope-from dannyman@arh0300.urh.uiuc.edu) Received: (from dannyman@localhost) by arh0300.urh.uiuc.edu (8.8.8/8.8.5) id IAA11235; Sun, 5 Apr 1998 08:12:20 -0500 (CDT) Message-Id: <199804051312.IAA11235@arh0300.urh.uiuc.edu> Date: Sun, 5 Apr 1998 08:12:20 -0500 (CDT) From: dannyman Reply-To: dannyman@arh0300.urh.uiuc.edu To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: dannyman@arh0300.urh.uiuc.edu, freebsd-current@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/6218: usleep is hosed, timezone problems in current Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6218 >Category: i386 >Synopsis: problems with usleep and adjkerntz >Confidential: yes >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 5 00:20:00 PST 1998 >Last-Modified: >Originator: dannyman >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD arh0300.urh.uiuc.edu 3.0-CURRENT FreeBSD 3.0-CURRENT #8: Sun Apr 5 01:22:12 CST 1998 dannyman@arh0300.urh.uiuc.edu:/newhome/src/sys/compile/STUMPY i386 >Description: just did a make buildowld ; make installworld on CVSup run at 0430h saturday morning localtime. :) usleep is not returning proper return codes. even when it works just fine, it returns -1 consistently, and appears to set errno at whimsy (i've gotten 35 and 2) ... also, I appear to be on what I guess to be UTC ... i tried to reset my tz with tzsetup ... no avail ... I ran ntpdate and things were corrected, after my X display went blank for awhile. awhile later the screen went blank for a few seconds again and I'm back now ... well, should be 0309h CDT (just should have shifted from CST 0209h ...) 5 April ... date says; Sun Apr 5 08:10:13 CDT 1998 UTC afaik :) >How-To-Repeat: #include #include main() { extern int errno; printf("usleep return: %d\n", usleep(1)); printf("errno: %d\n", errno); } I had a program that was running while(!usleep(val)) and is currently kludged to while(usleep(val)) just fine ... >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message