Skip to content

Commit ccdfff3

Browse files
committed
Drop pollable in clock_nanosleep()
1 parent 4418f12 commit ccdfff3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc-bottom-half/cloudlibc/src/libc/time/clock_nanosleep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp,
3737
// Block until polling event is triggered.
3838
poll_method_pollable_block(poll_borrow_pollable(pollable));
3939

40+
poll_pollable_drop_own(pollable);
4041
return 0;
4142
}
4243
#else

0 commit comments

Comments
 (0)