about summary refs log tree commit diff
path: root/src/termios/tcdrain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/termios/tcdrain.c')
-rw-r--r--src/termios/tcdrain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/termios/tcdrain.c b/src/termios/tcdrain.c
index 8e889b51..9ff1ecd5 100644
--- a/src/termios/tcdrain.c
+++ b/src/termios/tcdrain.c
@@ -7,6 +7,7 @@ int tcdrain(int fd)
 	int ret;
 	CANCELPT_BEGIN;
 	ret = ioctl(fd, TCSBRK, 1);
+	CANCELPT_TRY;
 	CANCELPT_END;
 	return ret;
 }