mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-03 03:59:12 +01:00
vncserver: refactor
This commit is contained in:
parent
68554d84d6
commit
9a6ea64e0f
@ -335,7 +335,7 @@ sub List
|
||||
foreach my $file (@filelist) {
|
||||
if ($file =~ /$host:(\d+)$\.pid/) {
|
||||
chop($tmp_pid = `cat $vncUserDir/$file`);
|
||||
if (kill 0, $tmp_pid) {
|
||||
if (&IsProcessRunning($tmp_pid)) {
|
||||
print ":".$1."\t\t".`cat $vncUserDir/$file`;
|
||||
} else {
|
||||
unlink ($vncUserDir . "/" . $file);
|
||||
|
Loading…
Reference in New Issue
Block a user