summaryrefslogtreecommitdiff
path: root/progressmeter.c
diff options
context:
space:
mode:
authordjm <djm>2003-03-19 23:08:05 +0000
committerdjm <djm>2003-03-19 23:08:05 +0000
commit033811858910c350af65d8b8115b39b8551da30b (patch)
treeeb8e12392b728d427dc8030e5abdfcae6a071f8e /progressmeter.c
parent6ec13fa5ccff78eb90220479b822b4652a486524 (diff)
downloadopenssh-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.c5
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