[Git][NTPsec/ntpsec][master] Don't duplicate the keyboard error handler in ntpwait.

Eric S. Raymond gitlab at mg.gitlab.com
Fri Aug 11 19:08:11 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
05de2bca by Eric S. Raymond at 2017-08-11T15:07:56-04:00
Don't duplicate the keyboard error handler in ntpwait.

- - - - -


1 changed file:

- ntpclients/ntpwait


Changes:

=====================================
ntpclients/ntpwait
=====================================
--- a/ntpclients/ntpwait
+++ b/ntpclients/ntpwait
@@ -214,8 +214,8 @@ if __name__ == "__main__":
         if verbose:
             sys.stdout.write("\bNo!\nntpd did not synchronize.\n")
         sys.exit(1)
-    except KeyboardInterrupt:
-        sys.stderr.write("Interrupted.\n")
+    except:
+        sys.stderr.write("Aborted - possible internal error.\n")
         sys.exit(2)
 
 # end



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/05de2bca16fdb30d4cb5bcda87f3f1348b3f97ec

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/05de2bca16fdb30d4cb5bcda87f3f1348b3f97ec
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/20170811/694504e3/attachment.html>


More information about the vc mailing list