[Git][NTPsec/ntpsec][master] ntpwait: fix issues #358, return exit(2) on control-C

Gary E. Miller gitlab at mg.gitlab.com
Sun Aug 13 19:00:38 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
2de9f294 by Gary E. Miller at 2017-08-13T11:59:55-07:00
ntpwait: fix issues #358, return exit(2) on control-C

- - - - -


1 changed file:

- ntpclients/ntpwait


Changes:

=====================================
ntpclients/ntpwait
=====================================
--- a/ntpclients/ntpwait
+++ b/ntpclients/ntpwait
@@ -19,7 +19,7 @@ A spurious 'not running' message can result from queries being disabled.
 # Because we've actually seen this fail on a ^C during import of ntp.packet.
 import signal
 import sys
-signal.signal(signal.SIGINT, lambda signal, frame: sys.exit(0))
+signal.signal(signal.SIGINT, lambda signal, frame: sys.exit(2))
 
 import getopt
 import re



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2de9f29468af92d4836b5d84e8457b30d10f2ea9

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2de9f29468af92d4836b5d84e8457b30d10f2ea9
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170813/664c3db7/attachment.html>


More information about the vc mailing list