Give confetty based consoles more of a grace period

For people doing X forwarding, wcons tiling has always been
flaky.  For confluent, we have a better cue, so give it
more time for the sake of X forwarded users
This commit is contained in:
jjohnson2 2015-03-20 11:00:10 -04:00
parent ff3eee61f3
commit 71d4dabbd4

View File

@ -109,6 +109,9 @@ if (defined($tilefact)) {
system("xterm $xrm -bg black -fg white -title $firstnode -n $firstnode -geometry $sizegeometry+0+0 ".join(" ",@ARGV)." -e /bin/bash -c \"/bin/true ".$ENV{DISPLAY}." $firstnode $firstnode & let SDATE=`date +%s`+5; $mydir/rcons $firstnode ".$conservers{$firstnode}."; if [ \\\$SDATE -gt \\`date +%s\\` ]; then echo Press enter to close; read SDATE; fi \" &");
$ENV{CONSCONTROLPATH} = "";
my $remainwait = 2;
if (-x "/opt/confluent/bin/confetty" or -x "/usr/bin/confetty" or -x "/usr/local/bin/confetty" ) {
$remainwait = 10;
}
while (not -S "/tmp/wconscontrol.$firstnode.$$" and $remainwait > 0) {
sleep(0.1);
$remainwait -= 0.1;