1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:04:44 -07:00

Correct the regexp for finding unix signal names.

For example, earlier, the regexp would accept SIGQUEUE_MAX
  as a unix signal with name SIGQUEUE. Now it is ignored.

R=iant
CC=golang-dev, golang-nuts, joel.sherrill
https://golang.org/cl/1452041
This commit is contained in:
Vinu Rajashekhar 2010-06-01 12:02:00 -07:00 committed by Ian Lance Taylor
parent fbff95bd97
commit 0d64fa19f8

View File

@ -19,6 +19,6 @@ var _ = syscall.Syscall // in case there are zero signals
const (
EOH
sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\).*/ \1 = UnixSignal(syscall.\1)/p' "$1"
sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\)[ ].*/ \1 = UnixSignal(syscall.\1)/p' "$1"
echo ")"