From 0d64fa19f8789793b89e86c85972612b0112d583 Mon Sep 17 00:00:00 2001 From: Vinu Rajashekhar Date: Tue, 1 Jun 2010 12:02:00 -0700 Subject: [PATCH] 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 --- src/pkg/os/signal/mkunix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/os/signal/mkunix.sh b/src/pkg/os/signal/mkunix.sh index e1ea66059b4..653b0166416 100755 --- a/src/pkg/os/signal/mkunix.sh +++ b/src/pkg/os/signal/mkunix.sh @@ -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 ")"