Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/rump/rumpkern/h_client Don't use printf in a signal ha...



details:   https://anonhg.NetBSD.org/src/rev/1b13158cacb9
branches:  trunk
changeset: 760659:1b13158cacb9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jan 10 14:05:03 2011 +0000

description:
Don't use printf in a signal handler.

XXX: it would be nice if the deadlock with malloc were a little
more obvious, especially since gdb doesn't provide any clues unless
you compile libpthread with -g

diffstat:

 tests/rump/rumpkern/h_client/h_stresscli.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r c811ddc67ba0 -r 1b13158cacb9 tests/rump/rumpkern/h_client/h_stresscli.c
--- a/tests/rump/rumpkern/h_client/h_stresscli.c        Mon Jan 10 13:56:44 2011 +0000
+++ b/tests/rump/rumpkern/h_client/h_stresscli.c        Mon Jan 10 14:05:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_stresscli.c,v 1.2 2011/01/06 06:59:25 pooka Exp $    */
+/*     $NetBSD: h_stresscli.c,v 1.3 2011/01/10 14:05:03 pooka Exp $    */
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -22,8 +22,6 @@
 signaali(int sig)
 {
 
-       membar_consumer();
-       printf("process did %d syscalls\n", syscalls);
        _exit(0);
 }
 



Home | Main Index | Thread Index | Old Index