[Mono-bugs] [Bug 73355][Wis] New - mod-mono-server fails with a socket file that contains a path
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 4 Mar 2005 13:55:02 -0500 (EST)
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 rlyon@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73355
--- shadow/73355 2005-03-04 13:55:02.000000000 -0500
+++ shadow/73355.tmp.12810 2005-03-04 13:55:02.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 73355
+Product: Mono: Tools
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: XSP
+AssignedTo: gonzalo@ximian.com
+ReportedBy: rlyon@novell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: mod-mono-server fails with a socket file that contains a path
+
+If the socket file sent to mod-mono-server contains a path or if no
+socket file is specified (the default has a path), mod-mono-server will
+fail creating it's lock file.
+
+Here is one solution (another would be to always have the lock file in
+the same directory as the socket file):
+
+Index: server/server.cs
+===================================================================
+--- server/server.cs (revision 41374)
++++ server/server.cs (working copy)
+@@ -269,7 +269,7 @@
+ Console.WriteLine ("ERROR: --
+address without --port");
+ Environment.Exit (1);
+ }
+- lockfile = Path.Combine (Path.GetTempPath
+(), filename);
++ lockfile = Path.Combine (Path.GetTempPath
+(), Path.GetFileName(filename));
+ lockfile = String.Format ("{0}_{1}",
+lockfile, hash);
+ } else {
+ lockfile = Path.Combine (Path.GetTempPath
+(), "mod_mono_TCP_");