From 84764bac80706c12187cd6541f5b50ab2a40539e Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sun, 1 Aug 2021 22:37:43 +1200 Subject: [PATCH] vncserver: refactor --- unix/vncserver | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/vncserver b/unix/vncserver index 6107fb3..ebebe70 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -111,7 +111,7 @@ $cmd = &ConstructXvncCmd(); # Run $cmd and record the process ID. $pidFile = "$vncUserDir/$host:$displayNumber.pid"; -&StartXAndRecordPID(); +&StartXvncAndRecordPID(); # Give Xvnc a chance to start up sleep(3); @@ -924,7 +924,7 @@ sub ConstructXvncCmd { return $cmd; } -sub StartXAndRecordPID { +sub StartXvncAndRecordPID { system("$cmd & echo \$! >$pidFile"); } @@ -943,7 +943,7 @@ sub IfXvncDidntStartTryFixingFontPathAndStartXvncAgain { } $cmd =~ s@-fp [^ ]+@@; $cmd .= " -fp $defFontPath" if ($defFontPath); - &StartXAndRecordPID(); + &StartXvncAndRecordPID(); sleep(3); } }