diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |