Skip to content

Commit

Permalink
add nanosleep to novdso.c
Browse files Browse the repository at this point in the history
`./tardis 1000 1000 sleep 1` is hanging indefinitely for me.  Adding this seems to fix it and time is accelerated as expected.
  • Loading branch information
luxe authored May 29, 2021
1 parent bd135ed commit 1bfe37d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions novdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ int gettimeofday(void * tv, void * tz) {
int time(void * tloc) {
return syscall(SYS_time, tloc);
}

int nanosleep(const struct timespec *req, struct timespec *rem) {
return syscall(SYS_nanosleep,req,rem);
}

0 comments on commit 1bfe37d

Please sign in to comment.