about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-20 08:03:19 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-20 08:03:19 +0000
commit403445d72e03e419c4a1c5b21bdff52a391e0727 (patch)
tree54ab50ce9174f4ad92475938011c546a748a8974
parent00d26929520f517929f59151167080921df4d781 (diff)
downloadglibc-403445d72e03e419c4a1c5b21bdff52a391e0727.tar.gz
glibc-403445d72e03e419c4a1c5b21bdff52a391e0727.tar.xz
glibc-403445d72e03e419c4a1c5b21bdff52a391e0727.zip
[BZ #4816]
* manual/signal.texi (Non-atomic Example): Make memory var volatile.
	[BZ #4816]
	* manual/signal.texi (Non-atomic Example): Make memory var volatile.
-rw-r--r--ChangeLog3
-rw-r--r--manual/signal.texi2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 01e9b4bb1f..b092a8e96d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
 
+	[BZ #4816]
+	* manual/signal.texi (Non-atomic Example): Make memory var volatile.
+
 	[BZ #4813]
 	* login/forkpty.c (forkpty): Close master and slave fds on
 	fork failure.  Patch by
diff --git a/manual/signal.texi b/manual/signal.texi
index dfaaa88950..ec02d9cf37 100644
--- a/manual/signal.texi
+++ b/manual/signal.texi
@@ -1966,7 +1966,7 @@ writing.)
 #include <signal.h>
 #include <stdio.h>
 
-struct two_words @{ int a, b; @} memory;
+volatile struct two_words @{ int a, b; @} memory;
 
 void
 handler(int signum)