Created attachment 763749 [details] openlmi-service-race.patch - Patch for review. Description of problem: Race condition windows in handling output from service command. I rewrote Service_Operation function. But i don't tested nor compiled this patch. It's only how-to/idea how to do things like this. Patch is simple output of git diff. Version-Release number of selected component (if applicable): openlmi-service provider: commit 7057f8c9ed6f51044a853710defde4ef14f2a340 How reproducible: Always
I have couple of notes to your report: 1) It is not clear what is the problem. Race condition when? Is the problem using mktemp instead of mkstemp? I would rather see detailed description of the problem instead of untested patch. 2) This provider (service) is nor compiled nor present in Fedora packages (with exception of Fedora 17). There is service-dbus provider which doesn't have this issue. Nevertheless this issue still needs to be addressed.
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle. Changing version to '20'. More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20
Fixed upstream: https://git.fedorahosted.org/cgit/openlmi-providers.git/commit/?id=5f780e8c3e4de8866af4a71e22b956533ffca9ca