[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-commit
Subject:    Re: [hurd,commited 1/3] hurd: fix usleep(ULONG_MAX)
From:       Samuel Thibault <samuel.thibault () gnu ! org>
Date:       2020-06-29 8:12:56
Message-ID: 20200629081256.pmh37vms7xrucko2 () function
[Download RAW message or body]

Andreas Schwab, le lun. 29 juin 2020 09:58:12 +0200, a ecrit:
> 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).

Right, that's less hardcoding indeed :)

Samuel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic