chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Fix segfault when passing a non-integer to thr


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix segfault when passing a non-integer to thread-sleep! (fixes #1459)
Date: Mon, 30 Apr 2018 21:03:26 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Hi all,

This was just found by Kristian, and it's pretty trivial:
user code can call thread-sleep! with any real number as an argument,
but the timeout code itself which calculates the number of microseconds
to wait expects an integer.  This means we'll have to round the deadline
and make it an exact integer before sleeping.

Cheers,
Peter

Attachment: 0001-Convert-timeout-to-an-exact-number-of-milliseconds-b.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]