diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-26 16:19:56 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-26 16:21:10 -0500 |
commit | 239c1ad5c9c2dac0b4e1853154bcb21e0084cfab (patch) | |
tree | bd057ca95bae85f1d8563563ada6fd57fdb06392 /klippy/serialqueue.c | |
parent | 7733e1d8327be3ed00ae8efc020fd0fb8a17634f (diff) | |
download | kutter-239c1ad5c9c2dac0b4e1853154bcb21e0084cfab.tar.gz kutter-239c1ad5c9c2dac0b4e1853154bcb21e0084cfab.tar.xz kutter-239c1ad5c9c2dac0b4e1853154bcb21e0084cfab.zip |
serialqueue: Don't clear must_exit flag at start of pollreactor_run()
Avoid a timing race where must_exit is set before pollreactor_run() is
started.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialqueue.c')
-rw-r--r-- | klippy/serialqueue.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/klippy/serialqueue.c b/klippy/serialqueue.c index afdcc297..7f7d7fd9 100644 --- a/klippy/serialqueue.c +++ b/klippy/serialqueue.c @@ -147,7 +147,6 @@ pollreactor_check_timers(struct pollreactor *pr, double eventtime) static void pollreactor_run(struct pollreactor *pr) { - pr->must_exit = 0; double eventtime = get_monotonic(); while (! pr->must_exit) { int timeout = pollreactor_check_timers(pr, eventtime); |