GNOME Bugzilla – Bug 387482
Variable modified in signal handler should be volatile
Last modified: 2006-12-20 18:35:01 UTC
the "done" gboolean in gnome-pty-helper.c should be volatile, or the compiler might optimise the variable out of other functions.
Created attachment 78619 [details] [review] vte-HEAD-pty-helper-volatile.patch
Thanks for the patch. Have you encountered this problem anywhere, or just spotted it? I mean, should I worry about an stable release, etc, or just commit to head?
(In reply to comment #2) > Thanks for the patch. Have you encountered this problem anywhere, or just > spotted it? Just spotted it. > I mean, should I worry about an stable release, etc, or just > commit to head? Probably both, in my opinion, as the problem is more than theoretical
Thanks. I'll create a stable branch and pick bug fixes there. 2006-12-20 Behdad Esfahbod <behdad@gnome.org> Bug 387482 – Variable modified in signal handler should be volatile Patch from Bastien Nocera * gnome-pty-helper/gnome-pty-helper.c: Make variable "done" volatile.