mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-21 05:18:50 +01:00
vncserver: refactor
This commit is contained in:
parent
0ca46888a0
commit
3ef297a7cd
@ -932,7 +932,7 @@ sub StartXvncWithSafeFontPath {
|
||||
}
|
||||
|
||||
sub IsXvncRunning {
|
||||
kill 0, `cat $pidFile`;
|
||||
&IsProcessRunning(`cat $pidFile`);
|
||||
}
|
||||
|
||||
sub WarnUserXvncNotStartedAndExit {
|
||||
@ -1085,6 +1085,7 @@ sub WaitForTimeLimitOrSubReturningTrue {
|
||||
|
||||
sub IsProcessRunning {
|
||||
my $pid = shift;
|
||||
unless ($pid) { return 0 };
|
||||
|
||||
kill 0, $pid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user