Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Thank you for this @ctrl-alt-delor. As I am not overly familiar with these programs, could you demonstrate how I might use them to acheive these goals? Commented Nov 11, 2020 at 20:04
  • I added some code, but there is a bug: a race condition. Commented Nov 12, 2020 at 19:22
  • Apologies for my naivety, but what is a race hazard/condition? Commented Nov 13, 2020 at 1:37
  • A race hazard is where the outcome depends on timing: what happens first. In my above code if the file changes between make ending (and may be at bit before that) and inotify starting then nothing will happen (you could end up waiting forever). After getting it to work then it would be worth a question, to ask how to eliminate the race condition. Hazard: because it can cause problems. Condition: is what it does when it looses the race (if A is before B then … else …) Commented Nov 13, 2020 at 17:40
  • Ahh... Makes sense. Thanks for the explanation! Commented Nov 13, 2020 at 23:31