summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 268643b51..834deb69a 100644
--- a/scp.c
+++ b/scp.c
@@ -1224,8 +1224,12 @@ progressmeter(int flag)
1224 struct sigaction sa; 1224 struct sigaction sa;
1225 sa.sa_handler = updateprogressmeter; 1225 sa.sa_handler = updateprogressmeter;
1226 sigemptyset((sigset_t *)&sa.sa_mask); 1226 sigemptyset((sigset_t *)&sa.sa_mask);
1227 sa.sa_flags = 0;
1227#ifdef SA_RESTART 1228#ifdef SA_RESTART
1228 sa.sa_flags = SA_RESTART; 1229 sa.sa_flags |= SA_RESTART;
1230#endif
1231#ifdef SA_INTERRUPT
1232 sa.sa_flags |= SA_INTERRUPT;
1229#endif 1233#endif
1230 sigaction(SIGALRM, &sa, NULL); 1234 sigaction(SIGALRM, &sa, NULL);
1231 alarmtimer(1); 1235 alarmtimer(1);