Commit a22eadbf authored by Niels Möller's avatar Niels Möller
Browse files

Added

volatile modifier to all uses of sig_atomic_t.

Rev: src/io.c:1.123
Rev: src/io.h:1.72
Rev: src/reaper.c:1.18
Rev: src/unix_interact.c:1.3
parent 1cbe9cfd
......@@ -74,7 +74,7 @@
(super resource)
(vars
(next object lsh_signal_handler)
(flag . "sig_atomic_t *")
(flag . "volatile sig_atomic_t *")
(action object lsh_callback)))
*/
......@@ -438,7 +438,7 @@ make_io_backend(void)
struct resource *
io_signal_handler(struct io_backend *b,
sig_atomic_t *flag,
volatile sig_atomic_t *flag,
struct lsh_callback *action)
{
NEW(lsh_signal_handler, handler);
......
......@@ -228,7 +228,7 @@ void io_run(struct io_backend *b);
struct resource *
io_signal_handler(struct io_backend *b,
sig_atomic_t *flag,
volatile sig_atomic_t *flag,
struct lsh_callback *action);
struct resource *
......
......@@ -44,7 +44,7 @@
#include "reaper.c.x"
static sig_atomic_t halloween;
static volatile sig_atomic_t halloween;
static void child_handler(int signum)
{
......
......@@ -48,7 +48,7 @@
#include "unix_interact.c.x"
static sig_atomic_t window_changed;
static volatile sig_atomic_t window_changed;
static void winch_handler(int signum)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment