summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/progressmeter.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2003-03-17 10:38:38 +0000
committermarkus <markus@openbsd.org>2003-03-17 10:38:38 +0000
commitca2cc31ca5a35edc9a9ea283840c505c3e40874c (patch)
tree30faf4509990a10e0eb00e7b6d51a45d6a06fc0a /usr.bin/ssh/progressmeter.c
parentmore small typos; (diff)
downloadwireguard-openbsd-ca2cc31ca5a35edc9a9ea283840c505c3e40874c.tar.xz
wireguard-openbsd-ca2cc31ca5a35edc9a9ea283840c505c3e40874c.zip
don't print \n if backgrounded; from ho@
Diffstat (limited to 'usr.bin/ssh/progressmeter.c')
-rw-r--r--usr.bin/ssh/progressmeter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c
index e7380a8ff7a..4e208f6ee1c 100644
--- a/usr.bin/ssh/progressmeter.c
+++ b/usr.bin/ssh/progressmeter.c
@@ -60,7 +60,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: progressmeter.c,v 1.2 2003/01/12 16:57:02 markus Exp $");
+RCSID("$OpenBSD: progressmeter.c,v 1.3 2003/03/17 10:38:38 markus Exp $");
#include <libgen.h>
@@ -124,7 +124,8 @@ stop_progress_meter()
{
alarm(0);
draw_progress_meter();
- atomicio(write, fileno(stdout), "\n", 1);
+ if (foregroundproc() != 0)
+ atomicio(write, fileno(stdout), "\n", 1);
}
static void