Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78034 --- shadow/78034 2006-04-06 10:50:08.000000000 -0400 +++ shadow/78034.tmp.32132 2006-04-06 10:50:08.000000000 -0400 @@ -0,0 +1,57 @@ +Bug#: 78034 +Product: Mono: Tools +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: mod_mono +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Cannot start more than 1 mod-mono-server in TCP Mode + +Description of Problem: +Try to start : +mod-mono-server --port 9000 +and +mod-mono-server --port 9001 + +on the same machine + +Actual Results: +the second start mono server will fail with : +Another mod-mono-server with the same arguments is already running. + +No, the another mod-mono-server is not launched with the same arguments + + +Additional Information: +when a mod-mono-server is launcher with the --port option a lock file is +created in the /tmp directory +: /tmp/mod_mono_TCP__hashcode + +the hashcode should be calculated with the arguments value, and it is +calculated with the arguments name: + +Here's the patch to correct this mistake : +Index: src/server.cs +=================================================================== +--- src/server.cs (révision 59112) ++++ src/server.cs (copie de travail) +@@ -264,7 +264,7 @@ + int hash = 0; + for (int i = 0; i < args.Length; i++){ + string a = args [i]; +- hash ^= args [i].GetHashCode () + i; ++ hash ^= args [i+1].GetHashCode () + i; + + switch (a){ + #if MODMONO_SERVER + +Could you commit it? _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
