=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cu/command.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/cu/command.c 2015/10/05 17:53:56 1.14 +++ src/usr.bin/cu/command.c 2015/10/05 23:15:31 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: command.c,v 1.14 2015/10/05 17:53:56 nicm Exp $ */ +/* $OpenBSD: command.c,v 1.15 2015/10/05 23:15:31 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott @@ -51,6 +51,7 @@ return; restore_termios(); + set_blocking(line_fd, 1); switch (pid = fork()) { case -1: @@ -81,6 +82,7 @@ break; } + set_blocking(line_fd, 0); set_termios(); } @@ -102,6 +104,7 @@ return; restore_termios(); + set_blocking(line_fd, 1); switch (pid = fork()) { case -1: @@ -129,6 +132,7 @@ break; } + set_blocking(line_fd, 0); set_termios(); }