more cancellation points: tcdrain, clock_nanosleep

This commit is contained in:
Rich Felker 2011-03-10 11:06:50 -05:00
commit 11dbbe9fba
2 changed files with 12 additions and 2 deletions

View file

@ -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;
}