[Bug 1871129] Re: htop is blank when using in focal in wsl1
Rafael David Tinoco
rafaeldtinoco at ubuntu.com
Tue Apr 7 18:35:25 UTC 2020
Commit to blame in glibc:
commit 3537ecb49cf7177274607004c562d6f9ecc99474
Author: Adhemerval Zanella <adhemerval.zanella at linaro.org>
Date: Tue Nov 5 21:37:44 2019 +0000
Refactor nanosleep in terms of clock_nanosleep
The generic version is straightforward. For Hurd, its nanosleep
implementation is moved to clock_nanosleep with adjustments from
generic unix implementation.
The generic clock_nanosleep unix version is also removed since
it calls nanosleep.
Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.
Reviewed-by: Florian Weimer <fweimer at redhat.com>
diff --git a/posix/nanosleep.c b/posix/nanosleep.c
index d8564c7119..ed41c8cce7 100644
--- a/posix/nanosleep.c
+++ b/posix/nanosleep.c
@@ -24,10 +24,13 @@ int
__nanosleep (const struct timespec *requested_time,
struct timespec *remaining)
{
- __set_errno (ENOSYS);
- return -1;
+ int ret = __clock_nanosleep (CLOCK_REALTIME, 0, requested_time, remaining);
+ if (ret != 0)
+ {
+ __set_errno (ret);
+ return -1;
+ }
+ return 0;
}
-stub_warning (nanosleep)
-
-hidden_def (__nanosleep)
+libc_hidden_def (__nanosleep)
weak_alias (__nanosleep, nanosleep)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1871129
Title:
htop is blank when using in focal in wsl1
Status in glibc package in Ubuntu:
Confirmed
Status in htop package in Ubuntu:
Opinion
Bug description:
Right now I am trying Ubuntu 20.04 on WSL and I noticed that when I
run htop in WSL 1st generation, it is completely blank:
https://user-images.githubusercontent.com/15316889/78563857-31697b00
-784e-11ea-9f21-338a6cf8cb23.gif
The previous version (htop 2.1.0) works without any issue.
I am using htop 2.2.0-2build1 on Ubuntu 20.04 on WSL1 on Windows 10
build 19592.1001.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1871129/+subscriptions
More information about the foundations-bugs
mailing list