[packages/elogind/initscript: 3/3] race condition hack for restart

glen glen at pld-linux.org
Tue Aug 8 17:36:02 CEST 2017


commit a2d9de2c224daa81ed903530c1a9b7551d6ca11a
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Aug 8 18:35:32 2017 +0300

    race condition hack for restart
    
    https://github.com/elogind/elogind/issues/25#issuecomment-320990445

 elogind.init | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/elogind.init b/elogind.init
index 1422d49..bd59ebf 100755
--- a/elogind.init
+++ b/elogind.init
@@ -63,11 +63,17 @@ condrestart() {
 	fi
 
 	stop
+	# some race condition
+	# https://github.com/elogind/elogind/issues/25#issuecomment-320990445
+	sleep 1
 	start
 }
 
 restart() {
 	stop
+	# some race condition
+	# https://github.com/elogind/elogind/issues/25#issuecomment-320990445
+	sleep 1
 	start
 }
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elogind.git/commitdiff/a2d9de2c224daa81ed903530c1a9b7551d6ca11a



More information about the pld-cvs-commit mailing list