From 403445d72e03e419c4a1c5b21bdff52a391e0727 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 20 Jul 2007 08:03:19 +0000 Subject: [PATCH] [BZ #4816] * manual/signal.texi (Non-atomic Example): Make memory var volatile. [BZ #4816] * manual/signal.texi (Non-atomic Example): Make memory var volatile. --- ChangeLog | 3 +++ manual/signal.texi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01e9b4bb1f..b092a8e96d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-07-20 Jakub Jelinek + [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 #include -struct two_words @{ int a, b; @} memory; +volatile struct two_words @{ int a, b; @} memory; void handler(int signum)