[rkward] rkward: Guard against race conditions.

Thomas Friedrichsmeier null at kde.org
Fri May 4 10:04:43 UTC 2018


Git commit 7401ea55ee341c72eba43f636d72a920d7e985c2 by Thomas Friedrichsmeier.
Committed on 04/05/2018 at 09:51.
Pushed by tfry into branch 'master'.

Guard against race conditions.

M  +1    -0    rkward/rkward.cpp

https://commits.kde.org/rkward/7401ea55ee341c72eba43f636d72a920d7e985c2

diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 6a778b8a..70db44d9 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -120,6 +120,7 @@ RKWardMainWindow::RKWardMainWindow () : KParts::MainWindow ((QWidget *)0, (Qt::W
 	merge_loads = false;
 	rkward_mainwin = this;
 	RKGlobals::rinter = 0;
+	RKCommonFunctions::getRKWardDataDir(); // call this before any forking, in order to avoid potential race conditions during initialization of data dir
 	RKSettings::settings_tracker = new RKSettingsTracker (this);
 
 	///////////////////////////////////////////////////////////////////



More information about the rkward-tracker mailing list