dvbv5-zap.c: fix setting signal handlers
PATCH 1/1 dvbv5-zap.c: fix setting signal handlers
Signal handlers are currently out of order - SIGALRM is always set, and SIGINT only set when timeout is set. These should be the other way round.
Signed-off-by Jemma Denson <[email protected]>
--- utils/dvb/dvbv5-zap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
utils/dvb/dvbv5-zap.c +2 -2
@@ -959,10 +959,10 @@ int main(int argc, char **argv) goto err; } -signal (SIGALRM , do_timeout);signal (SIGTERM , do_timeout); +signal (SIGINT , do_timeout);if (args.timeout >0 ) { -signal (SIGINT , do_timeout); +signal (SIGALRM , do_timeout);alarm (args.timeout); }
Signature · 1 line
2.1.0