commit-hurd
[Top][All Lists]
Advanced

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

Re: [hurd,commited 1/3] hurd: fix usleep(ULONG_MAX)


From: Andreas Schwab
Subject: Re: [hurd,commited 1/3] hurd: fix usleep(ULONG_MAX)
Date: Mon, 29 Jun 2020 09:58:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux)

On Jun 29 2020, Samuel Thibault wrote:

>    (void) __mach_msg (NULL, MACH_RCV_MSG|MACH_RCV_TIMEOUT|MACH_RCV_INTERRUPT,
> -                  0, 0, recv, (useconds + 999) / 1000, MACH_PORT_NULL);
> +                  0, 0, recv, useconds_up / 1000, MACH_PORT_NULL);

Perhaps it should be written as useconds / 1000 + (useconds % 1000 !=
0).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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