Re: [PATCH v3 12/16] linux-user: fix clock_nanosleep()

2020-07-24 Thread Richard Henderson
On 7/23/20 11:45 PM, Alex Bennée wrote: > From: Laurent Vivier > > If the call is interrupted by a signal handler, it fails with error EINTR > and if "remain" is not NULL and "flags" is not TIMER_ABSTIME, it returns > the remaining unslept time in "remain". > > Update linux-user to not overwrite

[PATCH v3 12/16] linux-user: fix clock_nanosleep()

2020-07-23 Thread Alex Bennée
From: Laurent Vivier If the call is interrupted by a signal handler, it fails with error EINTR and if "remain" is not NULL and "flags" is not TIMER_ABSTIME, it returns the remaining unslept time in "remain". Update linux-user to not overwrite the "remain" structure if there is no error. Found w