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

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