diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-03-17 10:38:39 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-03-17 10:38:39 +0000 |
commit | 737dbd44ce76f5fd85cb819d3762693f65039c56 (patch) | |
tree | 1cfdc0beab2bcd0c88906d521d395313b4a43e93 /usr.bin | |
parent | 9af96e045ec1b849fbb958b928bbf5aa46a7c26d (diff) |
don't print \n if backgrounded; from ho@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/progressmeter.c | 5 |
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 |