summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2011-11-26 04:11:35 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2011-11-26 04:11:35 +0000
commit4df25a854dd099b8f46d1d7c867fb23516e122d0 (patch)
treebf9bcd34182d9c7e5b02dbabe5a463d1716a92b1 /regress
parentfa71261ee7d2ef70324896f686ca3bcb0d17cd91 (diff)
If sigaltstack() fails, report which thread correctly
Pointed out by Steffen Daode Nurpmeso (sdaoden at googlemail.com)
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c b/regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c
index 8b6237bdf9b..a33e717fa38 100644
--- a/regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c
+++ b/regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigaltstack_fork.c,v 1.1 2011/11/22 23:06:49 joshe Exp $ */
+/* $OpenBSD: sigaltstack_fork.c,v 1.2 2011/11/26 04:11:34 guenther Exp $ */
/*
* Public domain. 2011, Joshua Elsasser
@@ -22,7 +22,7 @@ check_stack(void *buf, const char *label)
bzero(&ss, sizeof(ss));
if (sigaltstack(NULL, &ss) != 0)
- err(1, "failed to get sigaltstack in parent");
+ err(1, "failed to get sigaltstack in %s", label);
if (ss.ss_sp != buf ||
ss.ss_size != SIGSTKSZ ||
ss.ss_flags != 0)