Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fix issue 14863 - CLOCK_BOOTTIME should be optional to support <2.6.39 kernels #1336

Merged
merged 1 commit into from
Aug 3, 2015

Conversation

schveiguy
Copy link
Member

https://issues.dlang.org/show_bug.cgi?id=14863

I realized, MonoTime.currTime is already checking for 0 and asserting (and any use of 0 for ticksPerSecond will have a divide by zero error anyway), we should simply defer to that. I made a note in the code so people don't add the asserts back in later.

This still doesn't eliminate a segfault for anyone who actually uses CLOCK_BOOTTIME on an unsupported system, since assert(0) turns into halt statement, but that is really a separate issue.

@schveiguy schveiguy added this to the 2.068 milestone Aug 3, 2015
@MartinNowak
Copy link
Member

thx

MartinNowak added a commit that referenced this pull request Aug 3, 2015
Fix issue 14863 - CLOCK_BOOTTIME should be optional to support <2.6.39 kernels
@MartinNowak MartinNowak merged commit 0ca2564 into dlang:stable Aug 3, 2015
@schveiguy schveiguy deleted the fixboottimelinux branch August 3, 2015 18:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants