This commit is contained in:
Mark McGranaghan 2012-10-11 11:03:13 -07:00
parent 93fb090961
commit d09734610c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# When we run this program it will block waiting for a
# signal. By typing `ctrl-C` (which the
# terminal shows as `^C`) we cand send a `SIGNIT` signal,
# terminal shows as `^C`) we cand send a `SIGINT` signal,
# causing the program to print `interrupt` and then exit.
$ go run signals.go
awaiting signal

View File

@ -56,7 +56,7 @@ func main() {
fmt.Println(string(grepBytes))
// Note that when spawning commands we need to
// provide an explicitly deliniated command and
// provide an explicitly delineated command and
// argument array, vs. being able to just pass in one
// command line string. If you want to spawn a full
// command with a string, you can use `bash`'s `-c`