Blame SOURCES/tigervnc-1.3.1-do-not-die-when-port-is-already-taken.patch

aeec89
diff --git a/unix/vncserver b/unix/vncserver
aeec89
index a6c890f..687ef72 100755
aeec89
--- a/unix/vncserver
aeec89
+++ b/unix/vncserver
aeec89
@@ -208,7 +208,8 @@ if ((@ARGV > 0) && ($ARGV[0] =~ /^:(\d+)$/)) {
aeec89
     $displayNumber = $1;
aeec89
     shift(@ARGV);
aeec89
     if (!&CheckDisplayNumber($displayNumber)) {
aeec89
-	die "A VNC server is already running as :$displayNumber\n";
aeec89
+        warn "A VNC server is already running as :$displayNumber\n";
aeec89
+        $displayNumber = &GetDisplayNumber();
aeec89
     }
aeec89
 } elsif ((@ARGV > 0) && ($ARGV[0] !~ /^-/) && ($ARGV[0] !~ /^\+/)) {
aeec89
     &Usage();