about summary refs log tree commit diff
path: root/src/termios
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-10 11:06:50 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-10 11:06:50 -0500
commit11dbbe9fbac33ede053803ebf7193550ec5cfb48 (patch)
treed92d978a4cfe5dd5a496dfc7b6e52d5e556a4ac4 /src/termios
parentc8c4ef7d4404b94483c68b7479eb98b9b09f996c (diff)
downloadmusl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.tar.gz
musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.tar.xz
musl-11dbbe9fbac33ede053803ebf7193550ec5cfb48.zip
more cancellation points: tcdrain, clock_nanosleep
Diffstat (limited to 'src/termios')
-rw-r--r--src/termios/tcdrain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/termios/tcdrain.c b/src/termios/tcdrain.c
index c51dd401..8e889b51 100644
--- a/src/termios/tcdrain.c
+++ b/src/termios/tcdrain.c
@@ -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;
 }