summaryrefslogtreecommitdiff
path: root/progressmeter.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-02-21 11:57:14 +0000
committerColin Watson <cjwatson@debian.org>2020-02-21 11:57:14 +0000
commitf0de78bd4f29fa688c5df116f3f9cd43543a76d0 (patch)
tree856b0dee3f2764c13a32dad5ffe2424fab7fef41 /progressmeter.c
parent4213eec74e74de6310c27a40c3e9759a08a73996 (diff)
parent8aa3455b16fddea4c0144a7c4a1edb10ec67dcc8 (diff)
Import openssh_8.2p1.orig.tar.gz
Diffstat (limited to 'progressmeter.c')
-rw-r--r--progressmeter.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/progressmeter.c b/progressmeter.c
index 0e58eddec..8baf798f1 100644
--- a/progressmeter.c
+++ b/progressmeter.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: progressmeter.c,v 1.48 2019/05/03 06:06:30 dtucker Exp $ */ 1/* $OpenBSD: progressmeter.c,v 1.50 2020/01/23 07:10:22 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2003 Nils Nordman. All rights reserved. 3 * Copyright (c) 2003 Nils Nordman. All rights reserved.
4 * 4 *
@@ -233,7 +233,6 @@ refresh_progress_meter(int force_update)
233static void 233static void
234sig_alarm(int ignore) 234sig_alarm(int ignore)
235{ 235{
236 signal(SIGALRM, sig_alarm);
237 alarm_fired = 1; 236 alarm_fired = 1;
238 alarm(UPDATE_INTERVAL); 237 alarm(UPDATE_INTERVAL);
239} 238}
@@ -253,8 +252,8 @@ start_progress_meter(const char *f, off_t filesize, off_t *ctr)
253 setscreensize(); 252 setscreensize();
254 refresh_progress_meter(1); 253 refresh_progress_meter(1);
255 254
256 signal(SIGALRM, sig_alarm); 255 ssh_signal(SIGALRM, sig_alarm);
257 signal(SIGWINCH, sig_winch); 256 ssh_signal(SIGWINCH, sig_winch);
258 alarm(UPDATE_INTERVAL); 257 alarm(UPDATE_INTERVAL);
259} 258}
260 259
@@ -277,7 +276,6 @@ stop_progress_meter(void)
277static void 276static void
278sig_winch(int sig) 277sig_winch(int sig)
279{ 278{
280 signal(SIGWINCH, sig_winch);
281 win_resized = 1; 279 win_resized = 1;
282} 280}
283 281