diff options
Diffstat (limited to 'src/termios/tcdrain.c')
-rw-r--r-- | src/termios/tcdrain.c | 7 |
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; } |