• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

guard / rb-inotify / 83 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 26 Sep 2020 11:58PM UTC
Files 7
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2020 11:57PM UTC coverage: 80.374% (+0.09%) from 80.282%
2.3

push

travis-ci

ioquatix
Prevent race condition in Notifier#run / #stop

There is a potential race condition when a notifier is run in a new
thread and then immediately stopped in the original thread.  If
`Notifier#stop` sets `@stop = true` before `Notifier#run` sets
`@stop = false`, then `Notifier#run` will loop until `Notifier#stop` is
called again.  Furthermore, if `Notifier#run` acquires the `@running`
mutex before `Notifier#stop` does (but after `Notifier#stop` sets
`@stop = true`), then `Notifier#stop` will get stuck waiting for the
mutex while `Notifier#run` infinitely loops.

This commit modifies `Notifier#run` to assume `@stop == false` when it
begins, and to reset `@stop = false` only after its loop terminates,
thus eliminating the race.

172 of 214 relevant lines covered (80.37%)

9.26 hits per line

Source Files on job 83.1 (2.3)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 80
  • Travis Job 83.1
  • 010f1406 on github
  • Prev Job for 2.3 on master (#82.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc