mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Fix backtraces on cancellation points
This commit is contained in:
parent
022536cab6
commit
0d7c265392
4 changed files with 22 additions and 13 deletions
|
@ -53,7 +53,6 @@ static ssize_t GetDevRandom(char *p, size_t n) {
|
|||
pthread_cleanup_push((void *)sys_close, (void *)(intptr_t)fd);
|
||||
rc = sys_read(fd, p, n);
|
||||
pthread_cleanup_pop(1);
|
||||
close(fd);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue