Codebase list golang-github-jacobsa-util / ed1e3870-63b2-46a8-8d37-569d90ab4f45/main
[ Alexandre Viau ] [ Debian Janitor ] New upstream snapshot. Debian Janitor 2 years ago
3 changed file(s) with 20 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
0 # Cf. http://docs.travis-ci.com/user/getting-started/
1 # Cf. http://docs.travis-ci.com/user/languages/go/
2
3 language: go
0 golang-github-jacobsa-util (0.0~git20150504-3) UNRELEASED; urgency=medium
0 golang-github-jacobsa-util (0.0~git20150810-1) UNRELEASED; urgency=medium
11
2 [ Alexandre Viau ]
23 * Point Vcs-* urls to salsa.debian.org.
34
4 -- Alexandre Viau <aviau@debian.org> Mon, 02 Apr 2018 18:06:55 -0400
5 [ Debian Janitor ]
6 * New upstream snapshot.
7
8 -- Alexandre Viau <aviau@debian.org> Tue, 28 Sep 2021 03:41:21 -0000
59
610 golang-github-jacobsa-util (0.0~git20150504-2) unstable; urgency=medium
711
4747 }
4848
4949 // A handler for SIGINT that calls the supplied function before terminating.
50 // Returns if the channel is closed.
5051 func handleInterrupt(c <-chan os.Signal, f func()) {
51 // Wait for a signal.
52 <-c
53 f()
52 for range c {
53 f()
5454
55 // c.f. http://stackoverflow.com/questions/1101957/are-there-any-standard-exit-status-codes-in-linux
56 os.Exit(-1)
55 // c.f. http://stackoverflow.com/questions/1101957/are-there-any-standard-exit-status-codes-in-linux
56 os.Exit(-1)
57 }
5758 }
5859
5960 // Read a password from the terminal without echoing it. No space is added
7980 // we're done because there is no way to re-enable the default signal
8081 // handler.
8182 signalChan := make(chan os.Signal)
83 defer close(signalChan)
84
8285 go handleInterrupt(signalChan, restore)
86
8387 signal.Notify(signalChan, os.Interrupt)
88 defer signal.Stop(signalChan)
8489
8590 // Disable echoing.
8691 newTermSettings := origTermSettings