diff --git a/unix/vncserver b/unix/vncserver index 47af91e..ad3de78 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -593,7 +593,7 @@ sub RunXstartup { if (! $skipxstartup) { system("$xstartupFile >> " . "edString($desktopLog) . " 2>&1"); } - if (kill 0, `cat $pidFile`) { + if (&IsXvncRunning()) { $opt{'-kill'} = ':'.$displayNumber; &Kill(); }