Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177641 - sys-apps/baselayout-2.0.0_alpha2: everything times out waiting for clock
Summary: sys-apps/baselayout-2.0.0_alpha2: everything times out waiting for clock
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 14:32 UTC by Benjamin K. Stuhl
Modified: 2007-05-14 15:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
a hack to fix this (baselayout-dont-timeout-after-clock.patch,777 bytes, patch)
2007-05-08 14:34 UTC, Benjamin K. Stuhl
Details | Diff
Use sysinfo uptime or clock_gettime (clock.patch,1.87 KB, patch)
2007-05-08 17:11 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin K. Stuhl 2007-05-08 14:32:19 UTC
Since I dual-boot with windows, I keep my system clock set to local time, and so all services waiting on clock time out after clock changes the time.

Reproducible: Always

Steps to Reproduce:
Comment 1 Benjamin K. Stuhl 2007-05-08 14:34:11 UTC
Created attachment 118554 [details, diff]
a hack to fix this

Here's a hacky patch to fix this by adding clock to the force-wait-forever lists; as the comment says, using CLOCK_MONOTONIC is probably the right answer -- if we can count on it working everywhere?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-05-08 17:11:21 UTC
Created attachment 118582 [details, diff]
Use sysinfo uptime or clock_gettime

Fair enough, try this patch then. I dislike clock_gettime on Linux as it requires linking to librt. Luckily we don't need that for our FreeBSD users :)
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-05-11 10:10:44 UTC
Does this work for you?
Comment 4 Benjamin K. Stuhl 2007-05-13 21:24:41 UTC
Yup, looks good!
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-05-14 15:14:51 UTC
Fixed in alpha3