vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-13 00:07:59 +12:00
parent 0ca46888a0
commit 3ef297a7cd

View File

@ -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;
}