You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# When we run this program it will block waiting for a
|
|
# signal. By typing `ctrl-C` (which the
|
|
# terminal shows as `^C`) we can send a `SIGINT` signal,
|
|
# causing the program to print `interrupt` and then exit.
|
|
$ go run signals.go
|
|
awaiting signal
|
|
^C
|
|
interrupt
|
|
exiting
|