diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-05 23:15:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-05 23:15:32 +0000 |
commit | 2d92ba262b738383c5c5e36b29be9ddc4825e301 (patch) | |
tree | bca91fc3e82cff7d92b9a26d5188146337576edc /usr.bin/cu/cu.h | |
parent | efcc57aee02bbe160b6270134845accf59a00550 (diff) |
Set the line file descriptor nonblocking and make it blocking again for
xmodem and child processes, makes xmodem work with -d. Reported by Kim
Zeitler via guenther@, tested by Jiri B. ok (and a small change) guenther
Diffstat (limited to 'usr.bin/cu/cu.h')
-rw-r--r-- | usr.bin/cu/cu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cu/cu.h b/usr.bin/cu/cu.h index 70510d61c42..10745bc037a 100644 --- a/usr.bin/cu/cu.h +++ b/usr.bin/cu/cu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cu.h,v 1.6 2012/07/10 12:47:23 nicm Exp $ */ +/* $OpenBSD: cu.h,v 1.7 2015/10/05 23:15:31 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org> @@ -27,6 +27,7 @@ extern FILE *record_file; extern struct termios saved_tio; extern int line_fd; extern struct bufferevent *line_ev; +void set_blocking(int, int); int set_line(int); void set_termios(void); void restore_termios(void); |