1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57:35 +00:00

LibC: Add nanosleep() wrapper around clock_nanosleep(CLOCK_REALTIME)

Gets rid of one dropbear patch. :^)
This commit is contained in:
Andreas Kling 2020-06-08 21:53:41 +02:00
parent 57b6f51137
commit c88ea2f54a
3 changed files with 6 additions and 11 deletions

View file

@ -1,11 +0,0 @@
Hinders security by a little, but I guess we'll just have nanosleep soon enough.
--- a/svr-auth.c.orig
+++ b/svr-auth.c
@@ -424,7 +424,6 @@
if (!fuzz.fuzzing)
#endif
{
- while (nanosleep(&delay, &delay) == -1 && errno == EINTR) { /* Go back to sleep */ }
}
ses.authstate.failcount++;