add pivot_root syscall wrapper
[oweals/musl.git] / src / time / nanosleep.c
index 2f65762f8f5f01981f15c4e4c7c735fc96a898e8..0e0753f3a78a47ee1a6bd862c39e5123ebcef8f5 100644 (file)
@@ -8,6 +8,7 @@ int nanosleep(const struct timespec *req, struct timespec *rem)
        int ret;
        CANCELPT_BEGIN;
        ret = syscall(SYS_nanosleep, req, rem);
+       CANCELPT_TRY;
        CANCELPT_END;
        return ret;
 }