diff options
author | djm <djm> | 2003-03-19 23:08:05 +0000 |
---|---|---|
committer | djm <djm> | 2003-03-19 23:08:05 +0000 |
commit | 033811858910c350af65d8b8115b39b8551da30b (patch) | |
tree | eb8e12392b728d427dc8030e5abdfcae6a071f8e /progressmeter.c | |
parent | 6ec13fa5ccff78eb90220479b822b4652a486524 (diff) | |
download | openssh-033811858910c350af65d8b8115b39b8551da30b.tar.gz |
- (djm) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/03/17 10:38:38
[progressmeter.c]
don't print \n if backgrounded; from ho@
Diffstat (limited to 'progressmeter.c')
-rw-r--r-- | progressmeter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/progressmeter.c b/progressmeter.c index 9956201f..90eb97f3 100644 --- a/progressmeter.c +++ b/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 $"); #ifdef HAVE_LIBGEN_H #include <libgen.h> @@ -126,7 +126,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 |