more cancellation points: tcdrain, clock_nanosleep
This commit is contained in:
parent
c8c4ef7d44
commit
11dbbe9fba
2 changed files with 12 additions and 2 deletions
|
|
@ -1,7 +1,12 @@
|
|||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "libc.h"
|
||||
|
||||
int tcdrain(int fd)
|
||||
{
|
||||
return ioctl(fd, TCSBRK, 1);
|
||||
int ret;
|
||||
CANCELPT_BEGIN;
|
||||
ret = ioctl(fd, TCSBRK, 1);
|
||||
CANCELPT_END;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue