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

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