summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-28 15:13:54 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-28 15:13:54 +0000
commitd3c5f7d6d9b85f23455b71ea6acd00dc4a869024 (patch)
tree221b3b3e398345353608ba1c0336ed013acff56f
parentf3cc3fc37d906a8cde15baa3a3db79c601026281 (diff)
downloaddrakx-d3c5f7d6d9b85f23455b71ea6acd00dc4a869024.tar
drakx-d3c5f7d6d9b85f23455b71ea6acd00dc4a869024.tar.gz
drakx-d3c5f7d6d9b85f23455b71ea6acd00dc4a869024.tar.bz2
drakx-d3c5f7d6d9b85f23455b71ea6acd00dc4a869024.tar.xz
drakx-d3c5f7d6d9b85f23455b71ea6acd00dc4a869024.zip
try to fix (and let some debug) X respawning too fast
-rwxr-xr-xmove/tree/X_move9
1 files changed, 7 insertions, 2 deletions
diff --git a/move/tree/X_move b/move/tree/X_move
index 54f30f81e..8059cbcba 100755
--- a/move/tree/X_move
+++ b/move/tree/X_move
@@ -1,12 +1,17 @@
#!/bin/bash
ok=0
+lastdate2=0
+lastdate1=0
lastdate0=0
while [ "$ok" == 0 -a ! -s /var/run/rebootctl ]; do
+ lastdate3=$lastdate2
+ lastdate2=$lastdate1
lastdate1=$lastdate0
lastdate0=`date +%s`
- if [ `expr $lastdate0 - $lastdate1` -lt 10 ]; then
- echo "X server respawning too fast :("
+ if [ `expr $lastdate0 - $lastdate3` -lt 20 ]; then
+ echo "X server respawning too fast [ $lastdate0 : $lastdate1 : $lastdate2 : $lastdate3 ] :("
+ while [ true ]; do sleep 10; done
exit 1
fi
X $@