mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-08 22:01:30 +00:00
Fix confetty race condition induced by wcons
wcons was leaving a common control socket defined for all invocations of confetty. Fix this by not setting a socket for any but the first. The channel is currently only used for wcons initial tiling, so it should only be bothered with for that anyway.
This commit is contained in:
@ -105,6 +105,7 @@ if (defined($tilefact)) {
|
||||
|
||||
$ENV{CONSCONTROLPATH} = "/tmp/wconscontrol.$firstnode.$$";
|
||||
system("xterm $xrm -bg black -fg white -title $firstnode -n $firstnode -geometry +0+0 ".join(" ",@ARGV)." -e /bin/bash -c \"$mydir/xtcd.pl ".$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;
|
||||
while (not -S "/tmp/wconscontrol.$firstnode.$$" and $remainwait > 0) {
|
||||
sleep(0.1);
|
||||
|
Reference in New Issue
Block a user