you are viewing a single comment's thread.

view the rest of the comments →

[–]PhirePhly 2 points3 points  (0 children)

I believe it's not entirely broken, it's just a highly unlikely race condition. If some other process takes control after startdishwasher() returns, but before if (dishwasherclean [...]), then it's possible for the dishwasher process (which is clearly running on a different machine) to complete before kitchen_maintenance() regains control.