Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/sysmon Make tcount volatile since a signal handler...
details: https://anonhg.NetBSD.org/src/rev/c785fbc2aa37
branches: trunk
changeset: 757446:c785fbc2aa37
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Aug 30 08:30:17 2010 +0000
description:
Make tcount volatile since a signal handler plays with it.
diffstat:
tests/dev/sysmon/t_swwdog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2c8ac7b73265 -r c785fbc2aa37 tests/dev/sysmon/t_swwdog.c
--- a/tests/dev/sysmon/t_swwdog.c Mon Aug 30 06:27:14 2010 +0000
+++ b/tests/dev/sysmon/t_swwdog.c Mon Aug 30 08:30:17 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_swwdog.c,v 1.1 2010/08/06 16:13:26 pooka Exp $ */
+/* $NetBSD: t_swwdog.c,v 1.2 2010/08/30 08:30:17 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -44,7 +44,7 @@
#include "../../h_macros.h"
-static sig_atomic_t tcount;
+static volatile sig_atomic_t tcount;
static void
sigcount(int sig)
Home |
Main Index |
Thread Index |
Old Index