Displaying 1 result from an estimated 1 matches for "racecondit".
2019 Mar 26
0
Bug: upssched and 3+ UPSes
...canceled.
My workaround is to make sure other upssched instances only deletes lockfn as a last resort, not the first time it sees it. It isn't a good solution because it will still have the same race condition if a lockfn was left by a crashed upssched:
diff -up nut-2.7.2/clients/upssched.c.racecondition nut-2.7.2/clients/upssched.c
--- nut-2.7.2/clients/upssched.c.racecondition 2014-02-19 20:31:10.000000000 +0100
+++ nut-2.7.2/clients/upssched.c 2019-03-26 15:30:19.972184228 +0100
@@ -648,8 +648,10 @@ static int check_parent(const char *cmd,
/* we didn't get the lo...