From owner-freebsd-current@FreeBSD.ORG Tue Dec 19 23:35:42 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C827416A417 for ; Tue, 19 Dec 2006 23:35:42 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 941D143CB3 for ; Tue, 19 Dec 2006 23:35:30 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so787494nzh for ; Tue, 19 Dec 2006 15:35:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ipbq9eVsoXDiOW1gicFFPvayyHN2/+8zKumtHfVbiAs8zMBYMQtwuMGVJKG9Uo4mVhVdI+lxzrJtRGzZJMvPVFiyukZL17KvyS9Z5bBRUIYLBbeEq5ei41xkIu+wA33vQ2wBvGSE5d7Y4WLcBAiJxCkvA5zcckrz5C/TLzCR4O8= Received: by 10.65.219.1 with SMTP id w1mr8146424qbq.1166571329688; Tue, 19 Dec 2006 15:35:29 -0800 (PST) Received: by 10.65.61.1 with HTTP; Tue, 19 Dec 2006 15:35:29 -0800 (PST) Message-ID: <790a9fff0612191535w471f6b5eoce02d53c7aeeb976@mail.gmail.com> Date: Tue, 19 Dec 2006 17:35:29 -0600 From: "Scot Hetzel" To: "Garrett Cooper" In-Reply-To: <1A4AF851-63A3-48CA-93D4-04117C6752EB@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0612190915va75678at895efa0bc93ac3a1@mail.gmail.com> <458843B8.1060704@u.washington.edu> <9ab217670612191201y47b7bb3codf979f88f56e81cc@mail.gmail.com> <6EBDAA3A-A78C-4AA2-B9B7-E94C5C7DB186@u.washington.edu> <1A4AF851-63A3-48CA-93D4-04117C6752EB@u.washington.edu> Cc: freebsd-current@freebsd.org Subject: Re: settimeofday function taking 24 - 30 minutes to complete X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 23:35:42 -0000 On 12/19/06, Garrett Cooper wrote: > One thing though, why don't you define your macro outside main()? Didn't think about that at the time, just coppied the TEST define from one of the LTP headers, and it into the code so I wouldn't have to rewrite the entire test. On 12/19/06, Garrett Cooper wrote: > > Comes back near instantly, unsuccessful as a regular user and > > successful as superuser under OS X. Trying linux now.. > > -Garrett > > > > PS You didn't include stdio.h or stdlib.h and the compiler (gcc) > > complained quite a bit. It didn't complain when I compiled it under FreeBSD. > > This (slightly) modified version of the code works perfectly fine > under OSX 10.4.8 and FC5: Even with the addition of these headers, it still hangs the system under FreeBSD/amd64 -CURRENT. If someone could run the test program under FreeBSD/i386 and see if they get the same problem. Thanks for looking into the problem. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.